org.apache.java.recycle
Class DefaultController

java.lang.Object
  |
  +--org.apache.java.recycle.DefaultController

public class DefaultController
extends java.lang.Object
implements Controller

The default controller doesn't do anything.

Version:
$Revision: 1.3 $ $Date: 1999/06/24 00:50:49 $

Constructor Summary
DefaultController()
           
 
Method Summary
 void down()
          This method is called by a ControlledContainer when some object is removed from the container.
 boolean isThereRoomFor(Recyclable 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 up()
          This method is called by a ControlledContainer when some object gets stored in the container.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

DefaultController

public DefaultController()
Method Detail

up

public void up()
Description copied from interface: Controller
This method is called by a ControlledContainer when some object gets stored in the container.
Specified by:
up in interface Controller

down

public void down()
Description copied from interface: Controller
This method is called by a ControlledContainer when some object is removed from the container.
Specified by:
down in interface Controller

isThereRoomFor

public boolean isThereRoomFor(Recyclable object)
Description copied from interface: Controller
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.

Specified by:
isThereRoomFor in interface Controller