|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Containment model is an extended deployment model that aggregates a set of models. A containment model describes a logical containment context.
Field Summary | |
static String |
SEPERATOR
|
Method Summary | |
void |
addCompositionListener(CompositionEventListener listener)
Add a composition listener to the model. |
ContainmentModel |
addContainmentModel(URL block,
URL config)
Addition of a new subsidiary containment model within the containment context using a supplied url. |
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. |
void |
applyTargets(TargetDirective[] targets)
Apply a set of override targets. |
void |
applyTargets(URL url)
Apply a set of override targets resolvable from a supplied url. |
CategoriesDirective |
getCategories()
Return the logging categories. |
ClassLoaderModel |
getClassLoaderModel()
Return the classloader model. |
Model |
getModel(DependencyDescriptor dependency)
Return a model relative to a supplied dependency. |
Model |
getModel(StageDescriptor stage)
Return a model relative to a supplied stage descriptor. |
Model |
getModel(String name)
Return a model relative to a supplied name. |
Model[] |
getModels()
Return the set of models nested within this model. |
String |
getPartition()
Return the partition established by the containment model. |
ServiceModel |
getServiceModel(Class clazz)
Return a service exoport model matching a supplied class. |
ServiceModel[] |
getServiceModels()
Return the set of service export models. |
void |
removeCompositionListener(CompositionEventListener listener)
Remove a composition listener from the model. |
void |
removeModel(String name)
Removal of a named model for the containment model. |
void |
setCategories(CategoriesDirective categories)
Set categories. |
Methods inherited from interface org.apache.avalon.composition.model.Model |
getMode, getName, getPath, getQualifiedName, getServices, isaCandidate, isaCandidate |
Field Detail |
public static final String SEPERATOR
Method Detail |
public CategoriesDirective getCategories()
public void setCategories(CategoriesDirective categories)
categories
- the logging categoriespublic String getPartition()
public ClassLoaderModel getClassLoaderModel()
public Model[] getModels()
public Model getModel(String name)
public Model getModel(DependencyDescriptor dependency) throws ModelRuntimeException
ModelRuntimeException
- if an error occurs during model establishmentpublic Model getModel(StageDescriptor stage) throws ModelRuntimeException
stage
- the stage descriptor
ModelRuntimeException
- if an error occurs during model establishmentpublic Model addModel(URL url) throws ModelException
url
- a containment profile url
ModelException
- if an error occurs during model establishmentpublic ContainmentModel addContainmentModel(URL block, URL config) throws ModelException
block
- a url referencing a containment profileconfig
- containment configuration targets
ModelException
- if an error occurs during model establishmentpublic Model addModel(Profile profile) throws ModelException
profile
- a containment or deployment profile
ModelException
- if an error occurs during model establishmentpublic void removeModel(String name)
name
- the name of the subsidiary model to be removedpublic ServiceModel[] getServiceModels()
public ServiceModel getServiceModel(Class clazz)
public void applyTargets(URL url) throws ModelException
url
- a url resolvable to a TargetDirective[]
ModelException
- if an error occurspublic void applyTargets(TargetDirective[] targets)
targets
- a set of target directivespublic void addCompositionListener(CompositionEventListener listener)
listener
- the composition listenerpublic void removeCompositionListener(CompositionEventListener listener)
listener
- the composition listener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |