@Module public class DestructionListener extends java.lang.Object implements ScopeRemoveListener, HttpSessionBindingListener, ClassLoaderListener, java.io.Serializable
Constructor and Description |
---|
DestructionListener() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void addValue(Contextual<?> bean, java.lang.Object value)
public void removeEvent(java.lang.Object scope, java.lang.String name)
removeEvent
in interface ScopeRemoveListener
public void valueBound(HttpSessionBindingEvent event)
HttpSessionBindingListener
valueBound
in interface HttpSessionBindingListener
event
- session event objectpublic void valueUnbound(HttpSessionBindingEvent event)
HttpSessionBindingListener
valueUnbound
in interface HttpSessionBindingListener
event
- session event objectpublic void classLoaderInit(DynamicClassLoader loader)
ClassLoaderListener
classLoaderInit
in interface ClassLoaderListener
public void classLoaderDestroy(DynamicClassLoader loader)
ClassLoaderListener
classLoaderDestroy
in interface ClassLoaderListener
public void close()