Package org.apache.openjpa.lib.conf
Class ObjectValue
java.lang.Object
org.apache.openjpa.lib.conf.Value
org.apache.openjpa.lib.conf.ObjectValue
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
PluginListValue,PluginValue,SpecificationPlugin
An object
Value.- Author:
- Abe White
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfigure(Object obj, Configuration conf) Configure the given object.configure(Object obj, Configuration conf, boolean fatal) Configure the given object.get()The internal value.protected StringReturn the internal string form of this value.Class<?>Returns the type of the property that this Value represents.instantiate(Class<?> type, Configuration conf) Instantiate the object as an instance of the given class.instantiate(Class<?> type, Configuration conf, boolean fatal) Instantiate the object as an instance of the given class.newInstance(String clsName, Class<?> type, Configuration conf, boolean fatal) Allow subclasses to instantiate additional plugins.protected voidImplement this method to synchronize internal data with the new object value.voidThe internal value.voidThe internal value.protected voidsetInternalObject(Object obj) Set this value from an object.protected voidsetInternalString(String str) Set this value from the given string.Methods inherited from class org.apache.openjpa.lib.conf.Value
addEquivalentKey, addListener, alias, alias, assertChangeable, clone, equals, getAliases, getDefault, getEquivalentKeys, getInstantiatingGetter, getListeners, getLoadKey, getOriginalValue, getProperty, getPropertyKeys, getScope, getString, hashCode, hide, isAliasListComprehensive, isDynamic, isHidden, isPrivate, makePrivate, matches, removeListener, setAlias, setAlias, setAliases, setAliasListComprehensive, setDefault, setDynamic, setInstantiatingGetter, setLoadKey, setObject, setProperty, setScope, setString, toString, unalias, unalias, valueChanged
-
Constructor Details
-
ObjectValue
-
-
Method Details
-
get
The internal value. -
set
The internal value. -
set
The internal value.- Parameters:
derived- if true, this value was derived from other properties
-
instantiate
Instantiate the object as an instance of the given class. Equivalent toinstantiate(type, conf, true). -
instantiate
Instantiate the object as an instance of the given class. -
configure
Configure the given object. -
configure
Configure the given object. -
newInstance
Allow subclasses to instantiate additional plugins. This method does not perform configuration. -
getValueType
Description copied from class:ValueReturns the type of the property that this Value represents.- Specified by:
getValueTypein classValue
-
objectChanged
protected void objectChanged()Implement this method to synchronize internal data with the new object value. -
getInternalString
Description copied from class:ValueReturn the internal string form of this value.- Specified by:
getInternalStringin classValue
-
setInternalString
Description copied from class:ValueSet this value from the given string.- Specified by:
setInternalStringin classValue
-
setInternalObject
Description copied from class:ValueSet this value from an object.- Specified by:
setInternalObjectin classValue
-