Package org.togglz.spring.listener
Class TogglzApplicationContextBinderApplicationListener
java.lang.Object
org.togglz.spring.listener.TogglzApplicationContextBinderApplicationListener
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener
public class TogglzApplicationContextBinderApplicationListener
extends Object
implements org.springframework.context.ApplicationListener
ApplicationListener that binds the ApplicationContext
to the Togglz ContextClassLoaderApplicationContextHolder.- Author:
- Marcel Overdijk
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA filter that can be used to excludeContextRefreshedEventevents used to populateContextClassLoaderApplicationContextHolder. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(org.springframework.context.ApplicationEvent event)
-
Constructor Details
-
TogglzApplicationContextBinderApplicationListener
public TogglzApplicationContextBinderApplicationListener() -
TogglzApplicationContextBinderApplicationListener
public TogglzApplicationContextBinderApplicationListener(TogglzApplicationContextBinderApplicationListener.ContextRefreshedEventFilter filter)
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener
-