public class ManagedBeanDestroyer extends Object implements SystemEventListener
| Constructor and Description | 
|---|
| ManagedBeanDestroyer(LifecycleProvider lifecycleProvider,
                    RuntimeConfig runtimeConfig)Creates the ManagedBeanDestroyer for the given RuntimeConfig
 and LifecycleProvider. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
public ManagedBeanDestroyer(LifecycleProvider lifecycleProvider, RuntimeConfig runtimeConfig)
lifecycleProvider - runtimeConfig - public boolean isListenerForSource(Object source)
isListenerForSource in interface SystemEventListenerpublic void processEvent(SystemEvent event)
processEvent in interface SystemEventListenerpublic boolean isManagedBean(String name)
name - Copyright © 2016 The Apache Software Foundation. All Rights Reserved.