|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.metadata.ObjectCacheDescriptor
public class ObjectCacheDescriptor
Encapsulates a ObjectCache
implementation class
and its proprietary configuration properties.
All ObjectCache implementation specific configuration
attributes are represented by key/value pairs in a
Properties
object and could be reached via
getConfigurationProperties()
or getAttribute(String key)
.
Field Summary |
---|
Constructor Summary | |
---|---|
ObjectCacheDescriptor()
|
|
ObjectCacheDescriptor(java.lang.Class objectCacheClass)
|
Method Summary | |
---|---|
void |
addAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
Store the specified attribute and it's value. |
java.lang.String |
getAttribute(java.lang.String key)
Get the value of an attribute |
java.lang.String |
getAttribute(java.lang.String attributeName,
java.lang.String defaultValue)
Get the value of an attribute |
java.util.Properties |
getConfigurationProperties()
|
java.lang.Class |
getObjectCache()
|
void |
setConfigurationProperties(java.util.Properties configurationProperties)
|
void |
setObjectCache(java.lang.Class objectCache)
|
java.lang.String |
toString()
|
java.lang.String |
toXML()
returns the XML marshalled version of this instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObjectCacheDescriptor()
public ObjectCacheDescriptor(java.lang.Class objectCacheClass)
Method Detail |
---|
public java.lang.Class getObjectCache()
public void setObjectCache(java.lang.Class objectCache)
public void addAttribute(java.lang.String attributeName, java.lang.String attributeValue)
AttributeContainer
addAttribute
in interface AttributeContainer
attributeName
- the name of the attribute to retrieveattributeValue
- the attribute's valuepublic java.lang.String getAttribute(java.lang.String key)
AttributeContainer
getAttribute
in interface AttributeContainer
key
- the attribute to retrieve
public java.lang.String getAttribute(java.lang.String attributeName, java.lang.String defaultValue)
AttributeContainer
getAttribute
in interface AttributeContainer
attributeName
- the attribute to retrievedefaultValue
- the value to return if the attribute is not present
public java.util.Properties getConfigurationProperties()
public void setConfigurationProperties(java.util.Properties configurationProperties)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toXML()
XmlCapable
toXML
in interface XmlCapable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |