info.magnolia.event
Class EventBusProtector

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by info.magnolia.objectfactory.guice.AbstractGuiceComponentConfigurer
          extended by info.magnolia.event.EventBusProtector
All Implemented Interfaces:
com.google.inject.Module, ComponentConfigurer

public class EventBusProtector
extends AbstractGuiceComponentConfigurer

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.

See Also:
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

EventBusProtector

public EventBusProtector()
Method Detail

configure

protected void configure()
Overrides:
configure in class AbstractGuiceComponentConfigurer

resetEventBuses

public void resetEventBuses()


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.