|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.lib.conf.Value
org.apache.openjpa.lib.conf.ObjectValue
org.apache.openjpa.lib.conf.PluginValue
public class PluginValue
A plugin Value consisting of plugin name and properties.
Plugins should be specified in the form:
<plugin-name>(<prop1>=<val1>, ...)
Both the plugin name and prop list are optional, so that the following
forms are also valid:
<plugin-name>
<prop1>=<val1> ...
Defaults and aliases on plugin values apply only to the plugin name.
| Field Summary |
|---|
| Fields inherited from class org.apache.openjpa.lib.conf.Value |
|---|
INVISIBLE |
| Constructor Summary | |
|---|---|
PluginValue(String prop,
boolean singleton)
|
|
| Method Summary | |
|---|---|
Object |
configure(Object obj,
Configuration conf,
boolean fatal)
Configure the given object. |
String |
getClassName()
The plugin class name. |
protected String |
getInternalString()
Return the internal string form of this value. |
String |
getProperties()
The plugin properties. |
String |
getString()
Return a stringified version of this value. |
Class<Object> |
getValueType()
Returns the type of the property that this Value represents. |
Object |
instantiate(Class<?> type,
Configuration conf,
boolean fatal)
Instantiate the plugin as an instance of the given class. |
boolean |
isSingleton()
Whether this value is a singleton. |
protected void |
objectChanged()
Implement this method to synchronize internal data with the new object value. |
void |
set(Object obj,
boolean derived)
The internal value. |
void |
setClassName(String name)
The plugin class name. |
protected void |
setInternalString(String str)
Set this value from the given string. |
void |
setProperties(String props)
The plugin properties. |
void |
setString(String str)
Set this value from the given string. |
| Methods inherited from class org.apache.openjpa.lib.conf.ObjectValue |
|---|
configure, get, instantiate, newInstance, set, setInternalObject |
| Methods inherited from class org.apache.openjpa.lib.conf.Value |
|---|
addEquivalentKey, addListener, alias, alias, assertChangeable, clone, containsReadOnlyConfigurationAsListener, equals, getAliases, getDefault, getEquivalentKeys, getInstantiatingGetter, getListeners, getLoadKey, getOriginalValue, getProperty, getPropertyKeys, getScope, hashCode, hide, isAliasListComprehensive, isDefault, isDynamic, isHidden, isPrivate, makePrivate, matches, removeListener, setAlias, setAlias, setAliases, setAliasListComprehensive, setDefault, setDynamic, setInstantiatingGetter, setLoadKey, setObject, setProperty, setScope, toString, unalias, unalias, valueChanged |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PluginValue(String prop,
boolean singleton)
| Method Detail |
|---|
public boolean isSingleton()
public String getClassName()
public void setClassName(String name)
public String getProperties()
public void setProperties(String props)
public Object instantiate(Class<?> type,
Configuration conf,
boolean fatal)
instantiate in class ObjectValue
public Object configure(Object obj,
Configuration conf,
boolean fatal)
configure in class ObjectValue
public void set(Object obj,
boolean derived)
ObjectValue
set in class ObjectValuederived - if true, this value was derived from other propertiespublic String getString()
Value
getString in class Valuepublic void setString(String str)
ValueoriginalString being null), then the
value is remembered as original. This original value is used
for equality and hashCode computation if this Value is
dynamic.
setString in class Valuepublic Class<Object> getValueType()
Value
getValueType in class ObjectValueprotected void objectChanged()
ObjectValue
objectChanged in class ObjectValueprotected String getInternalString()
Value
getInternalString in class ObjectValueprotected void setInternalString(String str)
Value
setInternalString in class ObjectValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||