|
|||||||||||
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.DefaultDeploymentModel
Deployment model defintion.
Constructor Summary | |
DefaultDeploymentModel(DeploymentContext context)
Creation of a new deployment model. |
Method Summary | |
boolean |
getActivationPolicy()
Return the activation policy for the model. |
CategoriesDirective |
getCategories()
Return the logging categories. |
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[] |
getDependencyModels()
Return the dependency models for this component type. |
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. |
ServiceDescriptor[] |
getServices()
Return the set of services produced by the model. |
StageModel[] |
getStageModels()
Return the stage models for this component type. |
Type |
getType()
Return the component type descriptor. |
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. |
boolean |
isConfigurable()
Rest if the component type backing the model is configurable. |
boolean |
isContextDependent()
Test if the component type backing the model requires the establishment of a runtime context. |
boolean |
isParameterizable()
Rest if the component type backing the model is parameterizable. |
void |
revertActivationPolicy()
Set the activation policy for the model to the default value. |
void |
setActivationPolicy(boolean policy)
Set the activation policy for the model. |
void |
setCategories(CategoriesDirective categories)
Set categories. |
void |
setCollectionPolicy(int policy)
Set the collection policy for the model. |
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. |
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 DefaultDeploymentModel(DeploymentContext context) throws ModelException
context
- the deployment contextMethod Detail |
public ServiceDescriptor[] getServices()
getServices
in interface Model
public boolean isaCandidate(DependencyDescriptor dependency)
isaCandidate
in interface Model
dependency
- the dependency descriptor
public boolean isaCandidate(StageDescriptor stage)
isaCandidate
in interface Model
stage
- the stage descriptor
public CategoriesDirective getCategories()
getCategories
in interface DeploymentModel
public int getCollectionPolicy()
getCollectionPolicy
in interface DeploymentModel
InfoDescriptor.WEAK
,
InfoDescriptor.SOFT
,
InfoDescriptor.HARD
,
InfoDescriptor.UNDEFINED
public void setCollectionPolicy(int policy)
setCollectionPolicy
in interface DeploymentModel
policy
- the collection policyInfoDescriptor.WEAK
,
InfoDescriptor.SOFT
,
InfoDescriptor.HARD
public void setCategories(CategoriesDirective categories)
setCategories
in interface DeploymentModel
categories
- the categories directivepublic boolean getActivationPolicy()
getActivationPolicy
in interface DeploymentModel
public void setActivationPolicy(boolean policy)
setActivationPolicy
in interface DeploymentModel
policy
- the activaltion policypublic void revertActivationPolicy()
revertActivationPolicy
in interface DeploymentModel
public Type getType()
getType
in interface DeploymentModel
public Class getDeploymentClass()
getDeploymentClass
in interface DeploymentModel
public boolean isParameterizable()
isParameterizable
in interface DeploymentModel
public void setParameters(Parameters parameters)
setParameters
in interface DeploymentModel
parameters
- the supplied parameters value
IllegalStateException
- if the component type backing the
model does not implement the parameteriazable interface
NullPointerException
- if the supplied parameters are nullpublic void setParameters(Parameters parameters, boolean policy) throws IllegalStateException
setParameters
in interface DeploymentModel
parameters
- the supplied parameterspolicy
- if TRUE the supplied parameters replaces the current
parameters value otherwise the existing and supplied values
are aggregrated
IllegalStateException
- if the component type backing the
model does not implement the parameteriazable interface
NullPointerException
- if the supplied parameters are nullpublic Parameters getParameters()
getParameters
in interface DeploymentModel
public boolean isConfigurable()
public void setConfiguration(Configuration config) throws IllegalStateException, NullPointerException
setConfiguration
in interface DeploymentModel
config
- the supplied configuration
IllegalStateException
- if the component type backing the
model does not implement the configurable interface
NullPointerException
- if the supplied configuration is nullpublic void setConfiguration(Configuration config, boolean policy) throws IllegalStateException, NullPointerException
setConfiguration
in interface DeploymentModel
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)
IllegalStateException
- if the component type backing the
model does not implement the configurable interface
NullPointerException
- if the supplied configuration is nullpublic Configuration getConfiguration()
getConfiguration
in interface DeploymentModel
public boolean isContextDependent()
isContextDependent
in interface DeploymentModel
public ContextModel getContextModel()
getContextModel
in interface DeploymentModel
public DependencyModel[] getDependencyModels()
getDependencyModels
in interface DeploymentModel
public StageModel[] getStageModels()
getStageModels
in interface DeploymentModel
public Class[] getInterfaces()
getInterfaces
in interface DeploymentModel
public String toString()
toString
in class DefaultModel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |