|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.
Constructor Summary | |
---|---|
PluginValue(String prop,
boolean singleton)
|
Method Summary | |
---|---|
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 |
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 |
---|
get, instantiate, newInstance, set, setInternalObject |
Methods inherited from class org.apache.openjpa.lib.conf.Value |
---|
alias, alias, clone, equals, getAliases, getDefault, getInstantiatingGetter, getListener, getLoadKey, getProperty, getScope, hashCode, isAliasListComprehensive, setAlias, setAlias, setAliases, setAliasListComprehensive, setDefault, setInstantiatingGetter, setListener, setLoadKey, setObject, setProperty, setScope, unalias, unalias, valueChanged |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, 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 void set(Object obj, boolean derived)
ObjectValue
set
in class ObjectValue
derived
- if true, this value was derived from other propertiespublic String getString()
Value
getString
in class Value
public void setString(String str)
Value
setString
in class Value
public Class getValueType()
Value
getValueType
in class ObjectValue
protected void objectChanged()
ObjectValue
objectChanged
in class ObjectValue
protected String getInternalString()
Value
getInternalString
in class ObjectValue
protected 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 |