|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.context.event.AbstractApplicationEventMulticaster org.springframework.context.event.SimpleApplicationEventMulticaster de.mindmatters.faces.spring.context.ScopeApplicationEventMulticaster
EventMulticaster that propagates events not only to singletons and prototypes instantiated on startup of type ApplicationListener (default behaviour of Spring) but also to listeners (managed beans) in session and request scope.
Listeners in session scope will be instantiated even if they are not instantiated yet; listeners in request scope will not be instantiated if they are not instantiated yet.
FacesWebApplicationContext
Constructor Summary | |
ScopeApplicationEventMulticaster()
|
Method Summary | |
protected ManagedBeanFactory |
getBeanFactory()
|
void |
multicastEvent(ApplicationEvent event)
|
protected void |
multicastEvent(FacesContext context,
ApplicationEvent event)
Multicast the given application event to appropriate listeners. |
protected void |
publishEvent(ApplicationEvent event,
java.lang.String scope,
boolean createBeanIfNecessary)
Publishes event for managed beans with scope scope . |
void |
setBeanFactory(BeanFactory beanFactory)
Supplies the owning factory to this bean instance. |
Methods inherited from class org.springframework.context.event.AbstractApplicationEventMulticaster |
addApplicationListener, getApplicationListeners, removeAllListeners, removeApplicationListener, setCollectionClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ScopeApplicationEventMulticaster()
Method Detail |
public final void multicastEvent(ApplicationEvent event)
multicastEvent
in interface ApplicationEventMulticaster
protected void multicastEvent(FacesContext context, ApplicationEvent event)
context
- the current FacesContextevent
- the event to multicastprotected final void publishEvent(ApplicationEvent event, java.lang.String scope, boolean createBeanIfNecessary)
scope
.
event
- event to publish (may be application-specific or a standard
framework event)scope
- the scope of the listenerscreateBeanIfNecessary
- listeners will be created if not yet done if true
public final void setBeanFactory(BeanFactory beanFactory)
ManagedBeanFactory
.
setBeanFactory
in interface BeanFactoryAware
beanFactory
- the ManagedBeanFactoryprotected final ManagedBeanFactory getBeanFactory()
ManagedBeanFactory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |