|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.engine.DeployableChain<T>
public class DeployableChain<T>
A DeployableChain is a container which manages dependencies between Deployables. You deploy() them in, then call rebuild() which will set up a chain, correctly ordered according to the constraints in the Deployables.
| Constructor Summary | |
|---|---|
DeployableChain()
|
|
| Method Summary | |
|---|---|
void |
addRelationship(String before,
String after)
Adds a before/after relationship to the active constraints. |
void |
deploy(Deployable deployable)
Deploy a Deployable into this chain. |
List<T> |
getChain()
Get the chain - once rebuild() has been called this will be the chain of target objects. |
void |
rebuild()
Taking into account all the active constraints, order the list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeployableChain()
| Method Detail |
|---|
public void deploy(Deployable deployable)
throws Exception
deployable - Deployable to deploy.
Exception - if there is a deployment error.
public void rebuild()
throws Exception
Exception - if there's an ordering conflict
public void addRelationship(String before,
String after)
before - name of the Deployable that must come firstafter - name of the Deployable that must come laterpublic List<T> getChain()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||