org.jwarp.util.recycle
Interface IController

All Known Implementing Classes:
DefaultController, GaussianController, MinMaxController, AdaptiveController

public interface IController

This interface should be implemented by those classes willing to control the level of recycle bins.

Author:
Anatole Tresch

Method Summary
 boolean canAddObject(IRecyclable object)
          This method is called to obtain info about the container level status and should return true if the controller grants access for the new object to be stored in the container.
 void objectAdded()
          This method is called by a ControlledContainer when some object gets stored in the container.
 void objectRemoved()
          This method is called by a ControlledContainer when some object is removed from the container.
 

Method Detail

objectAdded

public void objectAdded()
This method is called by a ControlledContainer when some object gets stored in the container.

objectRemoved

public void objectRemoved()
This method is called by a ControlledContainer when some object is removed from the container.

canAddObject

public boolean canAddObject(IRecyclable object)
This method is called to obtain info about the container level status and should return true if the controller grants access for the new object to be stored in the container.

It's up to the implementation to determine how to come up with this information.


©   O R C A   S y s t e m s