|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.config.ManagedBeanDestroyer
public class ManagedBeanDestroyer
Destroyes managed beans with the current LifecycleProvider. This guarantees the invocation of the @PreDestroy methods.
Constructor Summary | |
---|---|
ManagedBeanDestroyer()
|
Method Summary | |
---|---|
void |
destroy(java.lang.String name,
java.lang.Object instance)
Destroys the given managed bean with the current LifecycleProvider. |
void |
destroy(java.lang.String name,
java.lang.Object instance,
LifecycleProvider provider)
Destroys the given managed bean with the given LifecycleProvider |
LifecycleProvider |
getCurrentLifecycleProvider()
Retrieves the current LifecycleProvider from the LifecycleProviderFactory |
RuntimeConfig |
getRuntimeConfig()
|
boolean |
isListenerForSource(java.lang.Object source)
|
boolean |
isManagedBean(java.lang.String name)
Checks if the given managed bean exists in the RuntimeConfig. |
void |
processEvent(SystemEvent event)
Listens to PreDestroyCustomScopeEvent and PreDestroyViewMapEvent and invokes destroy() for every managed bean in the associated scope. |
void |
setRuntimeConfig(RuntimeConfig runtimeConfig)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagedBeanDestroyer()
Method Detail |
---|
public void setRuntimeConfig(RuntimeConfig runtimeConfig)
public RuntimeConfig getRuntimeConfig()
public boolean isListenerForSource(java.lang.Object source)
isListenerForSource
in interface SystemEventListener
public void processEvent(SystemEvent event)
processEvent
in interface SystemEventListener
public boolean isManagedBean(java.lang.String name)
name
-
public void destroy(java.lang.String name, java.lang.Object instance)
name
- instance
- public void destroy(java.lang.String name, java.lang.Object instance, LifecycleProvider provider)
name
- instance
- provider
- public LifecycleProvider getCurrentLifecycleProvider()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |