|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.activation.appliance.DependencyGraph
Utility class to help aquire a ordered graph of consumers and providers for specific components.
UML
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(Appliance appliance)
Add an appliance to current dependency graph. |
void |
addChild(DependencyGraph child)
Addition of a consumer dependency graph. |
Appliance[] |
getConsumerGraph(Appliance appliance)
Get the serilized graph of Appliance objects
that use services of the specified appliance. |
Appliance[] |
getProviderGraph(Appliance appliance)
Get the serilized graph of Appliance objects
that provide specified appliance with services. |
Appliance[] |
getShutdownGraph()
Get the serilized graph of Appliance objects
required when shutting down all the components. |
Appliance[] |
getStartupGraph()
Get the serilized graph of Appliance objects
required when starting up all the target. |
void |
remove(Appliance appliance)
Remove an appliance 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(Appliance appliance)
appliance
- the appliancepublic void remove(Appliance appliance)
appliance
- the appliancepublic Appliance[] getStartupGraph()
Appliance
objects
required when starting up all the target. This makes sure
that all providers are established before their coresponding
consumers in the graph.
public Appliance[] getShutdownGraph()
Appliance
objects
required when shutting down all the components. This makes
sure that all consumer shutdown actions occur before their
coresponding providers in graph.
public Appliance[] getConsumerGraph(Appliance appliance)
Appliance
objects
that use services of the specified appliance.
appliance
- the appliance
public Appliance[] getProviderGraph(Appliance appliance)
Appliance
objects
that provide specified appliance with services.
appliance
- the appliance
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |