org.jwarp.util.recycle
Class ControlledContainer

java.lang.Object
  |
  +--org.jwarp.util.recycle.ControlledContainer
All Implemented Interfaces:
IRecycleBin

public class ControlledContainer
extends java.lang.Object
implements IRecycleBin

This class wraps around a RecycleBin to control it with a given controller.

Author:
Anatole Tresch

Constructor Summary
ControlledContainer(IRecycleBin container, IController controller)
          Creates a new controlled container.
 
Method Summary
 java.util.Iterator getAllRecyclables()
          Returns all recyclable objects given the id
 IRecyclable getRecyclable()
          Get the recycle a recycle object
 int getSize()
          Get the current container size.
 void recycle(IRecyclable object)
          Recycle an object
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlledContainer

public ControlledContainer(IRecycleBin container,
                           IController controller)
Creates a new controlled container.
Parameters:
The - recycle bin container
The - controller
Method Detail

getRecyclable

public IRecyclable getRecyclable()
Get the recycle a recycle object
Specified by:
getRecyclable in interface IRecycleBin
Returns:
a rec

recycle

public void recycle(IRecyclable object)
Recycle an object
Specified by:
recycle in interface IRecycleBin
Parameters:
The - object to be recycled

getAllRecyclables

public java.util.Iterator getAllRecyclables()
Returns all recyclable objects given the id
Specified by:
getAllRecyclables in interface IRecycleBin
Returns:
all recyclables contained within the object

getSize

public int getSize()
Get the current container size.
Specified by:
getSize in interface IRecycleBin
Returns:
the size

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