com.xebialabs.deployit.deployment.rules
Class Rule
java.lang.Object
com.xebialabs.deployit.deployment.rules.Rule
- Direct Known Subclasses:
- ScriptRule
public abstract class Rule
- extends java.lang.Object
|
Constructor Summary |
Rule(java.lang.String name,
Scope scope)
|
|
Method Summary |
void |
disable()
|
abstract void |
fire(java.lang.Object scopedObject,
com.xebialabs.deployit.plugin.api.deployment.planning.DeploymentPlanningContext context)
Fire this rule for a scoped object. |
java.lang.String |
getName()
|
Scope |
getScope()
|
boolean |
isEnabled()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
protected final java.lang.String name
scope
protected final Scope scope
enabled
protected boolean enabled
Rule
public Rule(java.lang.String name,
Scope scope)
getName
public final java.lang.String getName()
getScope
public final Scope getScope()
isEnabled
public final boolean isEnabled()
disable
public final void disable()
toString
public final java.lang.String toString()
- Overrides:
toString in class java.lang.Object
fire
public abstract void fire(java.lang.Object scopedObject,
com.xebialabs.deployit.plugin.api.deployment.planning.DeploymentPlanningContext context)
- Fire this rule for a scoped object. The scopedObject depends on the Scope and is one of the following:
- For scope = 'deployed' it is a udm.Deployed
- For scope = 'plan' it is a Deltas object
- For scope = 'pre-plan' or scope = 'post-plan' it is a DeltaSpecification object
- Parameters:
scopedObject - context -