de.smartics.properties.spi.config.cache
Class CacheConfigurationPropertiesLoader
java.lang.Object
de.smartics.properties.spi.config.cache.CacheConfigurationPropertiesLoader
-
All Implemented Interfaces:
-
Serializable
-
public class CacheConfigurationPropertiesLoader
-
extends
Object
-
implements
Serializable
Responsible to read configuration properties to connect to a cache stored via JNDI.
-
See Also:
-
Serialized Form
Field Summary |
static String |
CLASSPATH_LOCATION The location within the classpath to find the configuration file to load. |
Method Summary |
Properties |
load() Loads the cache configuration from the classpath. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASSPATH_LOCATION
public static final String CLASSPATH_LOCATION
-
The location within the classpath to find the configuration file to load.
-
Constant Field Value:
-
"META-INF/smartics-properties/boot/cache.properties"
CacheConfigurationPropertiesLoader
public CacheConfigurationPropertiesLoader()
-
Default constructor.
load
public Properties load()
throws CacheException,
IllegalStateException
-
Loads the cache configuration from the classpath.
-
-
-
Returns:
-
the cache configuration.
-
Throws:
-
CacheException
- on any problem loading the cache.
-
IllegalStateException
- if the configuration files cannot be found on the classpath.
Copyright © 2012-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.