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 SystemEventListener
public void processEvent(SystemEvent event)
processEvent
in interface SystemEventListener
public boolean isManagedBean(String name)
name
- Copyright © 2020 The Apache Software Foundation. All rights reserved.