com.michaelbaranov.microba.common
Class AbstractPolicy

java.lang.Object
  extended by com.michaelbaranov.microba.common.AbstractPolicy
All Implemented Interfaces:
Policy

public abstract class AbstractPolicy
extends java.lang.Object
implements Policy

This is a convenience implementation of Policy.

Author:
Michael Baranov

Constructor Summary
AbstractPolicy()
           
 
Method Summary
 void addVetoPolicyListener(PolicyListener listener)
          Adds a PolicyListener.
 void removeVetoPolicyListener(PolicyListener listener)
          Removes a PolicyListener.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPolicy

public AbstractPolicy()
Method Detail

addVetoPolicyListener

public void addVetoPolicyListener(PolicyListener listener)
Description copied from interface: Policy
Adds a PolicyListener.

Specified by:
addVetoPolicyListener in interface Policy
Parameters:
listener - a PolicyListener to add

removeVetoPolicyListener

public void removeVetoPolicyListener(PolicyListener listener)
Description copied from interface: Policy
Removes a PolicyListener.

Specified by:
removeVetoPolicyListener in interface Policy
Parameters:
listener - a PolicyListener to remove