|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Deployment model defintion.
Field Summary |
Fields inherited from interface org.apache.avalon.composition.model.DeploymentModel |
DEPLOYMENT_TIMEOUT_KEY, SEPARATOR |
Method Summary | |
boolean |
getActivationPolicy()
Return the activation policy for the model. |
int |
getCollectionPolicy()
Return the collection policy for the model. |
Configuration |
getConfiguration()
Return the configuration to be applied to the component. |
ContextModel |
getContextModel()
Return the context model for this deployment model. |
DependencyModel |
getDependencyModel(DependencyDescriptor dependency)
Return a dependency model for a supplied descriptor or null if no match found. |
DependencyModel[] |
getDependencyModels()
Return the dependency models for this deployment model. |
Class |
getDeploymentClass()
Return the class for the deployable target. |
Class[] |
getInterfaces()
Return the set of services produced by the model as a array of classes. |
Parameters |
getParameters()
Return the parameters to be applied to the component. |
StageModel |
getStageModel(StageDescriptor stage)
Return a stage model matching the supplied descriptor or null if no match found. |
StageModel[] |
getStageModels()
Return the stage models for this deployment model. |
Type |
getType()
Return the deployment type. |
boolean |
isParameterizable()
Test if the component type backing the model is parameterizable. |
void |
setActivationPolicy(boolean policy)
Set the activation policy for the model. |
void |
setCollectionPolicy(int policy)
Set the collection policy to a supplied value. |
void |
setConfiguration(Configuration config)
Set the configuration to the supplied value. |
void |
setConfiguration(Configuration config,
boolean policy)
Set the configuration to the supplied value. |
void |
setParameters(Parameters parameters)
Set the parameters to the supplied value. |
void |
setParameters(Parameters parameters,
boolean policy)
Set the parameters to the supplied value. |
Methods inherited from interface org.apache.avalon.composition.model.DeploymentModel |
getAccessControlContext, getCategories, getConsumerGraph, getDeploymentTimeout, 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 |
Method Detail |
public Type getType()
public boolean getActivationPolicy()
public int getCollectionPolicy()
InfoDescriptor.WEAK
,
InfoDescriptor.SOFT
,
InfoDescriptor.HARD
public void setCollectionPolicy(int policy)
policy
- the collection policyInfoDescriptor.WEAK
,
InfoDescriptor.SOFT
,
InfoDescriptor.HARD
,
InfoDescriptor.UNDEFINED
public void setActivationPolicy(boolean policy)
policy
- the activaltion policypublic Class getDeploymentClass()
public void setConfiguration(Configuration config)
config
- the supplied configurationpublic void setConfiguration(Configuration config, boolean policy)
config
- the supplied configurationpolicy
- if TRUE the supplied configuration replaces the current
configuration otherwise the resoved configuration shall be layed above
the configuration supplied with the profile which in turn is layer above
the type default configuration (if any)public Configuration getConfiguration()
public boolean isParameterizable()
public void setParameters(Parameters parameters)
parameters
- the supplied parameters valuepublic void setParameters(Parameters parameters, boolean policy)
parameters
- the supplied parameterspolicy
- if TRUE the supplied parameters replaces the current
parameters value otherwise the existing and supplied values
are aggregratedpublic Parameters getParameters()
public ContextModel getContextModel()
ContextModel.isEnabled()
public DependencyModel[] getDependencyModels()
public DependencyModel getDependencyModel(DependencyDescriptor dependency)
public StageModel[] getStageModels()
public StageModel getStageModel(StageDescriptor stage)
stage
- the stage descriptor
public Class[] getInterfaces()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |