org.apache.java.recycle
Class ControlledContainer

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

public class ControlledContainer
extends java.lang.Object
implements RecycleBin

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

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

Field Summary
private  RecycleBin container
           
private  Controller controller
           
 
Constructor Summary
ControlledContainer(RecycleBin container, Controller controller)
           
 
Method Summary
 Recyclable getRecyclable()
           
 int getSize()
           
 void recycle(Recyclable object)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

container

private RecycleBin container

controller

private Controller controller
Constructor Detail

ControlledContainer

public ControlledContainer(RecycleBin container,
                           Controller controller)
Method Detail

getRecyclable

public Recyclable getRecyclable()
Specified by:
getRecyclable in interface RecycleBin

recycle

public void recycle(Recyclable object)
Specified by:
recycle in interface RecycleBin

getSize

public int getSize()
Specified by:
getSize in interface RecycleBin