|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.api.config.cache.CacheConfiguration
public final class CacheConfiguration
The cache configuration information.
Field Summary | |
---|---|
static String |
CACHE_ID The identifier of the cache configuration that provides the properties. |
static String |
CACHE_NAME The key to the cache name. |
static String |
JNDI_NAME The key to the JNDI name of the cache container. |
Constructor Summary | |
---|---|
CacheConfiguration() Default constructor. |
|
CacheConfiguration(Properties properties) Convenience constructor passing in a properties instance with properties to set by their keys. |
Method Summary | |
---|---|
String |
getCacheId() Returns the unique identifier of the cache. |
String |
getCacheName() Returns the name of the cache to use within the cache container stored in the JNDI. |
String |
getJndiName() Returns the name to lookup the cache container instance in the JNDI. |
boolean |
isUnset() Checks whether or not the configuration has value. |
void |
setCacheId(String cacheId) Sets the unique identifier of the cache. |
void |
setCacheName(String cacheName) Sets the name of the cache to use within the cache container stored in the JNDI. |
void |
setJndiName(String jndiName) Sets the name to lookup the cache container instance in the JNDI. |
String |
toString() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String CACHE_ID
The value of this constant is "de.smartics.properties.cache.id".
"de.smartics.properties.cache.id"
public static final String JNDI_NAME
The value of this constant is "de.smartics.properties.cache.jndiName".
"de.smartics.properties.cache.jndiName"
public static final String CACHE_NAME
The value of this constant is "de.smartics.properties.cache.cacheName".
"de.smartics.properties.cache.cacheName"
Constructor Detail |
---|
public CacheConfiguration()
public CacheConfiguration(Properties properties)
properties
- the properties to set.
Method Detail |
---|
public String getCacheId()
public void setCacheId(String cacheId)
cacheId
- the unique identifier of the cache.
public String getJndiName()
public void setJndiName(String jndiName)
jndiName
- the name to lookup container the cache instance in the JNDI.
public String getCacheName()
public void setCacheName(String cacheName)
cacheName
- the name of the cache to use within the cache container stored in the JNDI.
public boolean isUnset()
true
if the configuration is unset,
false
otherwise.
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |