org.ehcache.config.event
Class DefaultCacheEventListenerConfiguration

java.lang.Object
  extended by org.ehcache.internal.classes.ClassInstanceConfiguration<CacheEventListener<?,?>>
      extended by org.ehcache.config.event.DefaultCacheEventListenerConfiguration
All Implemented Interfaces:
CacheEventListenerConfiguration, ServiceConfiguration<CacheEventListenerProvider>

public class DefaultCacheEventListenerConfiguration
extends ClassInstanceConfiguration<CacheEventListener<?,?>>
implements CacheEventListenerConfiguration


Constructor Summary
DefaultCacheEventListenerConfiguration(CacheEventListener<?,?> listener)
           
DefaultCacheEventListenerConfiguration(java.lang.Class<? extends CacheEventListener<?,?>> clazz, java.lang.Object... arguments)
           
 
Method Summary
 java.util.EnumSet<EventType> fireOn()
          Indicates on which EventType an event has to be fired
 EventFiring firingMode()
          Indicates which firing mode to use
 java.lang.Class<CacheEventListenerProvider> getServiceType()
          Indicates which service this configuration works with.
 EventOrdering orderingMode()
          Indicates which ordering mode to use
 void setEventFiringMode(EventFiring firingMode)
           
 void setEventOrderingMode(EventOrdering orderingMode)
           
 void setEventsToFireOn(java.util.EnumSet<EventType> fireOn)
           
 
Methods inherited from class org.ehcache.internal.classes.ClassInstanceConfiguration
getArguments, getClazz, getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCacheEventListenerConfiguration

public DefaultCacheEventListenerConfiguration(java.lang.Class<? extends CacheEventListener<?,?>> clazz,
                                              java.lang.Object... arguments)

DefaultCacheEventListenerConfiguration

public DefaultCacheEventListenerConfiguration(CacheEventListener<?,?> listener)
Method Detail

getServiceType

public java.lang.Class<CacheEventListenerProvider> getServiceType()
Description copied from interface: ServiceConfiguration
Indicates which service this configuration works with.

Specified by:
getServiceType in interface ServiceConfiguration<CacheEventListenerProvider>
Returns:
the service type

setEventFiringMode

public void setEventFiringMode(EventFiring firingMode)

setEventOrderingMode

public void setEventOrderingMode(EventOrdering orderingMode)

setEventsToFireOn

public void setEventsToFireOn(java.util.EnumSet<EventType> fireOn)

firingMode

public EventFiring firingMode()
Description copied from interface: CacheEventListenerConfiguration
Indicates which firing mode to use

Specified by:
firingMode in interface CacheEventListenerConfiguration
Returns:
the firing mode to use

orderingMode

public EventOrdering orderingMode()
Description copied from interface: CacheEventListenerConfiguration
Indicates which ordering mode to use

Specified by:
orderingMode in interface CacheEventListenerConfiguration
Returns:
the ordering mode to use

fireOn

public java.util.EnumSet<EventType> fireOn()
Description copied from interface: CacheEventListenerConfiguration
Indicates on which EventType an event has to be fired

Specified by:
fireOn in interface CacheEventListenerConfiguration
Returns:
the set of EventType to fire on