|
||||||||||
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(LifecycleProvider lifecycleProvider,
RuntimeConfig runtimeConfig)
Creates the ManagedBeanDestroyer for the given RuntimeConfig and LifecycleProvider. |
Method Summary | |
---|---|
void |
destroy(java.lang.String name,
java.lang.Object instance)
Destroys the given managed bean. |
boolean |
isListenerForSource(java.lang.Object source)
|
boolean |
isManagedBean(java.lang.String name)
Checks if the given managed bean exists in the RuntimeConfig. |
void |
processEvent(javax.faces.event.SystemEvent event)
Listens to PreDestroyCustomScopeEvent and PreDestroyViewMapEvent and invokes destroy() for every managed bean in the associated scope. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagedBeanDestroyer(LifecycleProvider lifecycleProvider, RuntimeConfig runtimeConfig)
lifecycleProvider
- runtimeConfig
- Method Detail |
---|
public boolean isListenerForSource(java.lang.Object source)
isListenerForSource
in interface javax.faces.event.SystemEventListener
public void processEvent(javax.faces.event.SystemEvent event)
processEvent
in interface javax.faces.event.SystemEventListener
public boolean isManagedBean(java.lang.String name)
name
-
public void destroy(java.lang.String name, java.lang.Object instance)
name
- instance
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |