Package org.apache.openjpa.lib.conf
Class PluginListValue
java.lang.Object
org.apache.openjpa.lib.conf.Value
org.apache.openjpa.lib.conf.ObjectValue
org.apache.openjpa.lib.conf.PluginListValue
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
CacheMarshallersValue
A list of plugins. Defaults and aliases on plugin lists apply only
to individual class names.
- Author:
- Abe White
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
The plugin class names.protected String
Return the internal string form of this value.String[]
The plugin properties.Override to recognize aliases of the class name without the attached properties string.Returns the type of the property that this Value represents.instantiate
(Class<?> elemType, Configuration conf, boolean fatal) Instantiate the plugins as instances of the given class.protected void
Implement this method to synchronize internal data with the new object value.void
setClassNames
(String[] names) The plugin class names.protected void
setInternalString
(String str) Set this value from the given string.void
setProperties
(String[] props) The plugin properties.void
Override to recognize aliases of the plugin name without the attached properties string.Methods inherited from class org.apache.openjpa.lib.conf.ObjectValue
configure, configure, get, instantiate, newInstance, set, set, setInternalObject
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, hashCode, hide, isAliasListComprehensive, isDynamic, isHidden, isPrivate, makePrivate, matches, removeListener, setAlias, setAlias, setAliases, setAliasListComprehensive, setDefault, setDynamic, setInstantiatingGetter, setLoadKey, setObject, setProperty, setScope, toString, unalias, unalias, valueChanged
-
Constructor Details
-
PluginListValue
-
-
Method Details
-
getClassNames
The plugin class names. -
setClassNames
The plugin class names. -
getProperties
The plugin properties. -
setProperties
The plugin properties. -
instantiate
Instantiate the plugins as instances of the given class.- Overrides:
instantiate
in classObjectValue
-
getString
Override to recognize aliases of the class name without the attached properties string. -
setString
Override to recognize aliases of the plugin name without the attached properties string. -
getValueType
Description copied from class:Value
Returns the type of the property that this Value represents.- Overrides:
getValueType
in classObjectValue
-
objectChanged
protected void objectChanged()Description copied from class:ObjectValue
Implement this method to synchronize internal data with the new object value.- Overrides:
objectChanged
in classObjectValue
-
getInternalString
Description copied from class:Value
Return the internal string form of this value.- Overrides:
getInternalString
in classObjectValue
-
setInternalString
Description copied from class:Value
Set this value from the given string.- Overrides:
setInternalString
in classObjectValue
-