|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.composition.model.DependencyGraph
Utility class to aquire an ordered graph of consumers and providers models.
Constructor Summary | |
DependencyGraph()
Creation of a new empty dependency graph. |
|
DependencyGraph(DependencyGraph parent)
Creation of a new dependecy graph holding a reference to a parent graph. |
Method Summary | |
void |
add(DeploymentModel model)
Add a model to current dependency graph. |
void |
addChild(DependencyGraph child)
Addition of a consumer dependency graph. |
DeploymentModel[] |
getConsumerGraph(DeploymentModel model)
Get the serilized graph of DeploymentModel instances
that use services of the specified model. |
DeploymentModel[] |
getProviderGraph(DeploymentModel model)
Get the serilized graph of DeploymentModel istances
that provide specified model with services. |
DeploymentModel[] |
getShutdownGraph()
Get the serilized graph of DeploymentModel instances
required when shutting down all the components. |
DeploymentModel[] |
getStartupGraph()
Get the serilized graph of DeploymentModel objects
required when starting up the target. |
void |
remove(DeploymentModel model)
Remove a model from the dependency graph. |
void |
removeChild(DependencyGraph child)
Removal of a consumer dependency graph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DependencyGraph()
public DependencyGraph(DependencyGraph parent)
parent
- the parent graphMethod Detail |
public void addChild(DependencyGraph child)
child
- the child mappublic void removeChild(DependencyGraph child)
child
- the child mappublic void add(DeploymentModel model)
model
- the model to add to the graphpublic void remove(DeploymentModel model)
model
- the model to removepublic DeploymentModel[] getStartupGraph()
DeploymentModel
objects
required when starting up the target. This makes sure
that all providers are established before their coresponding
consumers in the graph.
public DeploymentModel[] getShutdownGraph()
DeploymentModel
instances
required when shutting down all the components. This makes
sure that all consumer shutdown actions occur before their
coresponding providers in graph.
public DeploymentModel[] getConsumerGraph(DeploymentModel model)
DeploymentModel
instances
that use services of the specified model.
model
- the model
public DeploymentModel[] getProviderGraph(DeploymentModel model)
DeploymentModel
istances
that provide specified model with services.
model
- the model
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |