|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.inject.AbstractModule info.magnolia.objectfactory.guice.AbstractGuiceComponentConfigurer info.magnolia.event.EventBusProtector
public class EventBusProtector
Protects event buses in the parent ComponentProvider by wrapping them with resettable wrappers. This prevents event handlers from staying around and bloat memory usage. Upon closing the ComponentProvider this class must be called to perform the reset.
ResettableEventBus
Field Summary |
---|
Fields inherited from class info.magnolia.objectfactory.guice.AbstractGuiceComponentConfigurer |
---|
configuration, parentComponentProvider |
Constructor Summary | |
---|---|
EventBusProtector()
|
Method Summary | |
---|---|
protected void |
configure()
|
void |
resetEventBuses()
|
Methods inherited from class info.magnolia.objectfactory.guice.AbstractGuiceComponentConfigurer |
---|
doWithConfiguration |
Methods inherited from class com.google.inject.AbstractModule |
---|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventBusProtector()
Method Detail |
---|
protected void configure()
configure
in class AbstractGuiceComponentConfigurer
public void resetEventBuses()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |