de.smartics.properties.spi.config.cache
Class CacheConfigurationPropertiesLoader

Package class diagram package CacheConfigurationPropertiesLoader
java.lang.Object
  extended by 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.
 
Constructor Summary
CacheConfigurationPropertiesLoader()
          Default constructor.
 
Method Summary
 CacheConfiguration 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
 

Field Detail

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"
Constructor Detail

CacheConfigurationPropertiesLoader

public CacheConfigurationPropertiesLoader()
Default constructor.

Method Detail

load

public CacheConfiguration 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.