|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.composition.model.impl.DefaultModel
org.apache.avalon.composition.model.impl.DefaultContainmentModel
Containment model implmentation within which composite models are aggregated as a part of a containment deployment model.
Field Summary |
Fields inherited from interface org.apache.avalon.composition.model.ContainmentModel |
SEPERATOR |
Constructor Summary | |
DefaultContainmentModel(ContainmentContext context)
Creation of a new containment model. |
Method Summary | |
Model |
addModel(Profile profile)
Addition of a new subsidiary model within the containment context using a supplied profile. |
Model |
addModel(URL url)
Addition of a new subsidiary model within the containment context using a supplied profile url. |
CategoriesDirective |
getCategories()
Return the logging categories. |
ClassLoaderModel |
getClassLoaderModel()
Return the classloader model. |
ServiceDirective |
getExportDirective(Class clazz)
Return the set of service export directives for a supplied class. |
ServiceDirective[] |
getExportDirectives()
Return the set of service export mappings |
Model |
getModel(DependencyDescriptor dependency)
Get a local model relative to a supplied service dependency. |
Model |
getModel(StageDescriptor stage)
Return a model relative to a supplied stage descriptor. |
Model |
getModel(String path)
Return a child model relative to a supplied name. |
Model[] |
getModels()
Return the set of immediate child models nested within this model. |
String |
getPartition()
Return the partition name established by this containment context. |
ServiceDescriptor[] |
getServices()
Return the set of services produced by the model. |
boolean |
isaCandidate(DependencyDescriptor dependency)
Return TRUE is this model is capable of supporting a supplied depedendency. |
boolean |
isaCandidate(StageDescriptor stage)
Return TRUE is this model is capable of supporting a supplied stage dependency. |
void |
setCategories(CategoriesDirective categories)
Set categories. |
String |
toString()
|
Methods inherited from class org.apache.avalon.composition.model.impl.DefaultModel |
getLogger, getMode, getName, getPath, getQualifiedName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.avalon.composition.model.Model |
getMode, getName, getPath, getQualifiedName |
Constructor Detail |
public DefaultContainmentModel(ContainmentContext context) throws ModelException
context
- the containment context that establishes
the structural association of this containment model
within a parent scopeMethod Detail |
public ClassLoaderModel getClassLoaderModel()
getClassLoaderModel
in interface ContainmentModel
public ServiceDescriptor[] getServices()
getServices
in interface Model
public boolean isaCandidate(DependencyDescriptor dependency)
isaCandidate
in interface Model
public boolean isaCandidate(StageDescriptor stage)
isaCandidate
in interface Model
public CategoriesDirective getCategories()
getCategories
in interface ContainmentModel
public void setCategories(CategoriesDirective categories)
setCategories
in interface ContainmentModel
categories
- the logging categoriespublic Model addModel(URL url) throws ModelException
ContainmentModel
addModel
in interface ContainmentModel
url
- a containment profile url
ModelException
- if an error occurs during model establishmentpublic Model addModel(Profile profile) throws ModelException
ContainmentModel
addModel
in interface ContainmentModel
profile
- a containment or deployment profile
ModelException
- if an error occurs during model establishmentpublic String getPartition()
getPartition
in interface ContainmentModel
public Model[] getModels()
getModels
in interface ContainmentModel
public Model getModel(String path)
getModel
in interface ContainmentModel
path
- a relative or absolute path
IllegalArgumentException
- if the name if badly formedpublic Model getModel(DependencyDescriptor dependency) throws ModelException
getModel
in interface ContainmentModel
dependency
- the service dependency descriptor
ModelException
- if an error occurs during model creationpublic Model getModel(StageDescriptor stage) throws ModelException
getModel
in interface ContainmentModel
stage
- the stage descriptor
ModelException
- if an error occurs during model establishmentpublic ServiceDirective[] getExportDirectives()
getExportDirectives
in interface ContainmentModel
public ServiceDirective getExportDirective(Class clazz)
getExportDirective
in interface ContainmentModel
public String toString()
toString
in class DefaultModel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |