|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.bootstrap.BootstrapCacheLoaderFactory<T>
T - The BootstrapCacheLoader type this Factory will createpublic abstract class BootstrapCacheLoaderFactory<T extends BootstrapCacheLoader>
An abstract factory for creating BootstrapCacheLoader instances. Implementers should provide their own concrete factory extending this factory. It can then be configured in ehcache.xml.
| Field Summary | |
|---|---|
static String |
BOOTSTRAP_ASYNCHRONOUSLY
The property name expected in ehcache.xml for the bootstrap asyncrhonously switch. |
| Constructor Summary | |
|---|---|
BootstrapCacheLoaderFactory()
|
|
| Method Summary | |
|---|---|
abstract T |
createBootstrapCacheLoader(Properties properties)
Create a BootstrapCacheLoader |
protected boolean |
extractBoolean(Properties properties,
String prop,
boolean defaultValue)
Will retrieve the boolean value from the properties, defaulting if property isn't present |
protected boolean |
extractBootstrapAsynchronously(Properties properties)
Extracts the value of bootstrapAsynchronously from the properties |
protected long |
extractLong(Properties properties,
String prop,
long defaultValue)
Will retrieve the boolean value from the properties, defaulting if property isn't present |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BOOTSTRAP_ASYNCHRONOUSLY
| Constructor Detail |
|---|
public BootstrapCacheLoaderFactory()
| Method Detail |
|---|
public abstract T createBootstrapCacheLoader(Properties properties)
BootstrapCacheLoader
properties - implementation specific properties. These are configured as comma
separated name value pairs in ehcache.xml
protected boolean extractBootstrapAsynchronously(Properties properties)
properties - the properties passed by the CacheManager, read from the configuration file
protected boolean extractBoolean(Properties properties,
String prop,
boolean defaultValue)
properties - the properties to useprop - the property name to look fordefaultValue - the default value if property is missing
protected long extractLong(Properties properties,
String prop,
long defaultValue)
properties - the properties to useprop - the property name to look fordefaultValue - the default value if property is missing
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||