org.ehcache.internal
Class TimeSourceConfiguration

java.lang.Object
  extended by org.ehcache.internal.TimeSourceConfiguration
All Implemented Interfaces:
ServiceConfiguration<TimeSourceService>

public class TimeSourceConfiguration
extends java.lang.Object
implements ServiceConfiguration<TimeSourceService>

Configuration for the TimeSourceService This configuration has to be applied at the CacheManager level.


Constructor Summary
TimeSourceConfiguration(TimeSource timeSource)
          Constructor for this configuration object which takes the TimeSource to use.
 
Method Summary
 java.lang.Class<TimeSourceService> getServiceType()
          Indicates which service this configuration works with.
 TimeSource getTimeSource()
          Exposes the TimeSource configured.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeSourceConfiguration

public TimeSourceConfiguration(TimeSource timeSource)
Constructor for this configuration object which takes the TimeSource to use.

Parameters:
timeSource - the TimeSource to use
Method Detail

getServiceType

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

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

getTimeSource

public TimeSource getTimeSource()
Exposes the TimeSource configured.

Returns:
the TimeSource