com.caucho.config.scope
Class DestructionListener

java.lang.Object
  extended by com.caucho.config.scope.DestructionListener
All Implemented Interfaces:
ScopeRemoveListener, ClassLoaderListener, java.io.Serializable, java.util.EventListener, HttpSessionBindingListener

@Module
public class DestructionListener
extends java.lang.Object
implements ScopeRemoveListener, HttpSessionBindingListener, ClassLoaderListener, java.io.Serializable

Contains the objects which need destruction for a given scope.

See Also:
Serialized Form

Constructor Summary
DestructionListener()
           
 
Method Summary
 void addValue(Contextual<?> bean, java.lang.Object value)
           
 void classLoaderDestroy(DynamicClassLoader loader)
          Handles the case where a class loader is dropped.
 void classLoaderInit(DynamicClassLoader loader)
          Handles the case where a class loader has completed initialization
 void close()
           
 void removeEvent(java.lang.Object scope, java.lang.String name)
           
 void valueBound(HttpSessionBindingEvent event)
          Called when the object is added to a session.
 void valueUnbound(HttpSessionBindingEvent event)
          Called when the object is removed from a session or the session is invalidated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DestructionListener

public DestructionListener()
Method Detail

addValue

public void addValue(Contextual<?> bean,
                     java.lang.Object value)

removeEvent

public void removeEvent(java.lang.Object scope,
                        java.lang.String name)
Specified by:
removeEvent in interface ScopeRemoveListener

valueBound

public void valueBound(HttpSessionBindingEvent event)
Description copied from interface: HttpSessionBindingListener
Called when the object is added to a session.

Specified by:
valueBound in interface HttpSessionBindingListener
Parameters:
event - session event object

valueUnbound

public void valueUnbound(HttpSessionBindingEvent event)
Description copied from interface: HttpSessionBindingListener
Called when the object is removed from a session or the session is invalidated.

Specified by:
valueUnbound in interface HttpSessionBindingListener
Parameters:
event - session event object

classLoaderInit

public void classLoaderInit(DynamicClassLoader loader)
Description copied from interface: ClassLoaderListener
Handles the case where a class loader has completed initialization

Specified by:
classLoaderInit in interface ClassLoaderListener

classLoaderDestroy

public void classLoaderDestroy(DynamicClassLoader loader)
Description copied from interface: ClassLoaderListener
Handles the case where a class loader is dropped.

Specified by:
classLoaderDestroy in interface ClassLoaderListener

close

public void close()