public class DeployableChain<T> extends Object
Constructor and Description |
---|
DeployableChain() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 conflictpublic void addRelationship(String before, String after)
before
- name of the Deployable that must come firstafter
- name of the Deployable that must come laterCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.