public class BeanManager extends Object implements SystemEventListener
Main interface for dealing with Faces managed beans
| Constructor and Description |
|---|
BeanManager(InjectionProvider injectionProvider,
boolean lazyBeanValidation) |
BeanManager(InjectionProvider injectionProvider,
Map<String,BeanBuilder> managedBeans,
boolean lazyBeanValidation) |
| Modifier and Type | Method and Description |
|---|---|
Object |
create(String name,
BeanBuilder builder,
FacesContext facesContext) |
Object |
create(String name,
FacesContext facesContext) |
void |
destroy(String beanName,
Object bean) |
Object |
getBeanFromScope(String name,
BeanBuilder builder,
FacesContext context) |
Object |
getBeanFromScope(String name,
FacesContext context) |
BeanBuilder |
getBuilder(String name) |
List<String> |
getEagerBeanNames() |
Map<String,BeanBuilder> |
getRegisteredBeans() |
boolean |
isBeanInScope(String name,
BeanBuilder builder,
FacesContext context) |
boolean |
isListenerForSource(Object source)
This method must return
true if and only if this listener instance is interested in receiving events
from the instance referenced by the source parameter. |
boolean |
isManaged(String name) |
void |
preProcessesBeans()
This should only be called during application init
|
void |
processEvent(SystemEvent event)
Invoke PreDestroy methods on any managed beans within the provided scope.
|
void |
register(ManagedBeanInfo beanInfo) |
public BeanManager(InjectionProvider injectionProvider, boolean lazyBeanValidation)
public BeanManager(InjectionProvider injectionProvider, Map<String,BeanBuilder> managedBeans, boolean lazyBeanValidation)
public void processEvent(SystemEvent event) throws AbortProcessingException
Invoke PreDestroy methods on any managed beans within the provided scope.
processEvent in interface SystemEventListenerevent - the ScopeContextAbortProcessingExceptionpublic boolean isListenerForSource(Object source)
SystemEventListener
This method must return true if and only if this listener instance is interested in receiving events
from the instance referenced by the source parameter.
isListenerForSource in interface SystemEventListenersource - the source that is inquiring about the appropriateness of sending an event to this listener instance.SystemEventListener.isListenerForSource(Object)public void register(ManagedBeanInfo beanInfo)
public Map<String,BeanBuilder> getRegisteredBeans()
public boolean isManaged(String name)
public BeanBuilder getBuilder(String name)
public void preProcessesBeans()
public boolean isBeanInScope(String name, BeanBuilder builder, FacesContext context)
public Object getBeanFromScope(String name, BeanBuilder builder, FacesContext context)
public Object getBeanFromScope(String name, FacesContext context)
public Object create(String name, FacesContext facesContext)
public Object create(String name, BeanBuilder builder, FacesContext facesContext)
Copyright © 1997–2020 Eclipse Foundation. All rights reserved.