|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.composition.model.impl.DefaultModelRepository
The model repository interface declares operations through which clients may resolve registered model instances relative to a stage or service dependencies.
Constructor Summary | |
DefaultModelRepository(ModelRepository parent,
Logger logger)
|
Method Summary | |
void |
addModel(DeploymentModel model)
Add an model to the repository. |
void |
addModel(String name,
DeploymentModel model)
Add an model to the repository. |
DeploymentModel[] |
getCandidateProviders(DependencyDescriptor dependency)
Locate all models meeting the supplied dependency criteria. |
DeploymentModel[] |
getCandidateProviders(ReferenceDescriptor reference)
Locate all models meeting the supplied service reference criteria. |
DeploymentModel[] |
getCandidateProviders(StageDescriptor stage)
Locate all models meeting the supplied criteria. |
DeploymentModel |
getModel(DependencyDescriptor dependency)
Locate an model meeting the supplied criteria. |
DeploymentModel |
getModel(ReferenceDescriptor reference)
Locate an model meeting the supplied criteria. |
DeploymentModel |
getModel(StageDescriptor stage)
Locate a model meeting the supplied criteria. |
DeploymentModel |
getModel(String name)
Locate a local model matching the supplied name. |
DeploymentModel[] |
getModels()
Return a sequence of all of the local models. |
void |
removeModel(DeploymentModel model)
Remove an model from the repository. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultModelRepository(ModelRepository parent, Logger logger)
Method Detail |
public DeploymentModel getModel(DependencyDescriptor dependency)
getModel
in interface ModelRepository
dependency
- a component service dependency
public DeploymentModel getModel(ReferenceDescriptor reference)
getModel
in interface ModelRepository
reference
- a component service reference
public DeploymentModel[] getCandidateProviders(StageDescriptor stage)
getCandidateProviders
in interface ModelRepository
stage
- a component stage dependency
public DeploymentModel[] getCandidateProviders(DependencyDescriptor dependency)
getCandidateProviders
in interface ModelRepository
dependency
- a component service dependency
public DeploymentModel[] getCandidateProviders(ReferenceDescriptor reference)
getCandidateProviders
in interface ModelRepository
reference
- a service reference
public DeploymentModel getModel(StageDescriptor stage)
getModel
in interface ModelRepository
stage
- a component stage dependency
public void addModel(DeploymentModel model)
addModel
in interface ModelRepository
model
- the model to addpublic void addModel(String name, DeploymentModel model)
addModel
in interface ModelRepository
name
- the name to register the model undermodel
- the model to addpublic void removeModel(DeploymentModel model)
removeModel
in interface ModelRepository
model
- the model to removepublic DeploymentModel[] getModels()
getModels
in interface ModelRepository
public DeploymentModel getModel(String name)
getModel
in interface ModelRepository
name
- the model name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |