com.xebialabs.deployit.deployment.rules
Class Rule

java.lang.Object
  extended by com.xebialabs.deployit.deployment.rules.Rule
Direct Known Subclasses:
ScriptRule

public abstract class Rule
extends java.lang.Object


Field Summary
protected  boolean enabled
           
protected  java.lang.String name
           
protected  Scope scope
           
 
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
 

Field Detail

name

protected final java.lang.String name

scope

protected final Scope scope

enabled

protected boolean enabled
Constructor Detail

Rule

public Rule(java.lang.String name,
            Scope scope)
Method Detail

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:

Parameters:
scopedObject -
context -