|
|||||||||||
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 |
KEY
|
static String |
SECURE_EXECUTION_KEY
|
Fields inherited from interface org.apache.avalon.composition.model.DeploymentModel |
DEPLOYMENT_TIMEOUT_KEY, SEPARATOR |
Method Summary | |
void |
addCompositionListener(CompositionListener listener)
Add a composition listener to the model. |
ContainmentModel |
addContainmentModel(URL url)
Addition of a new subsidiary containment model using a supplied profile url. |
ContainmentModel |
addContainmentModel(URL block,
URL config)
Addition of a new subsidiary containment model within the containment context using a supplied url. |
DeploymentModel |
addModel(DeploymentModel model)
Addition of a new subsidiary model within the containment context. |
DeploymentModel |
addModel(DeploymentProfile profile)
Addition of a new subsidiary model within the containment context using a supplied profile. |
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. |
void |
assemble()
Assemble the containment model. |
void |
assemble(List subjects)
Assemble the model. |
void |
disassemble()
Disassemble the model. |
ClassLoaderModel |
getClassLoaderModel()
Return the classloader model. |
long |
getDeploymentTimeout()
Return the default deployment timeout value declared in the kernel configuration. |
DeploymentModel |
getModel(DependencyDescriptor dependency)
Resolve a model capable of supporting the supplied service reference. |
DeploymentModel |
getModel(ReferenceDescriptor descriptor)
Resolve a model capable of supporting the supplied service reference. |
DeploymentModel |
getModel(String path)
Return a model relative to a supplied path. |
DeploymentModel[] |
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. |
DeploymentModel[] |
getShutdownGraph()
Get the shutdown sequence for the model. |
DeploymentModel[] |
getStartupGraph()
Get the startup sequence for the model. |
void |
removeCompositionListener(CompositionListener listener)
Remove a composition listener from the model. |
void |
removeModel(String name)
Remove a named model from this model. |
Methods inherited from interface org.apache.avalon.composition.model.DeploymentModel |
getAccessControlContext, getCategories, getConsumerGraph, getLogger, getMode, getName, getPath, getProviderGraph, getProviders, getQualifiedName, getServices, isaCandidate, isaCandidate, isaCandidate, isAssembled, setCategories |
Methods inherited from interface org.apache.avalon.composition.model.Commissionable |
commission, decommission |
Methods inherited from interface org.apache.avalon.composition.model.Resolver |
release, resolve, resolve |
Field Detail |
public static final String KEY
public static final String SECURE_EXECUTION_KEY
Method Detail |
public DeploymentModel[] getStartupGraph()
public DeploymentModel[] getShutdownGraph()
public String getPartition()
public ClassLoaderModel getClassLoaderModel()
public long getDeploymentTimeout()
getDeploymentTimeout
in interface DeploymentModel
public void assemble() throws AssemblyException
Exception
- if an error occurs during model assembly
AssemblyException
public void assemble(List subjects) throws AssemblyException
subjects
- a list of deployment models that make up the assembly chain
Exception
- if an error occurs during model assembly
AssemblyException
public void disassemble()
public DeploymentModel[] getModels()
public DeploymentModel getModel(String path)
path
- a relative or absolute path
IllegalArgumentException
- if the path if badly formedpublic DeploymentModel getModel(ReferenceDescriptor descriptor) throws AssemblyException
descriptor
- a service reference descriptor
AssemblyException
- if an assembly error occurspublic DeploymentModel getModel(DependencyDescriptor dependency) throws AssemblyException
dependency
- a service dependency descriptor
AssemblyException
- if an assembly error occurspublic ContainmentModel addContainmentModel(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 DeploymentModel addModel(DeploymentProfile profile) throws ModelException
profile
- a containment or deployment profile
ModelException
- if an error occurs during model establishmentpublic DeploymentModel addModel(DeploymentModel model)
model
- the model to add
public void removeModel(String name)
name
- the name of an immediate child modelpublic 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(CompositionListener listener)
listener
- the composition listenerpublic void removeCompositionListener(CompositionListener listener)
listener
- the composition listener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |