|
||||||||||
| 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(String name,
Object instance)
Destroys the given managed bean. |
boolean |
isListenerForSource(Object source)
|
boolean |
isManagedBean(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. |
| 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(Object source)
isListenerForSource in interface SystemEventListenerpublic void processEvent(SystemEvent event)
processEvent in interface SystemEventListenerpublic boolean isManagedBean(String name)
name -
public void destroy(String name,
Object instance)
name - instance -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||