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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]The plugin class names.protected StringReturn 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 voidImplement this method to synchronize internal data with the new object value.voidsetClassNames(String[] names) The plugin class names.protected voidsetInternalString(String str) Set this value from the given string.voidsetProperties(String[] props) The plugin properties.voidOverride 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, setInternalObjectMethods 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:
instantiatein 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:ValueReturns the type of the property that this Value represents.- Overrides:
getValueTypein classObjectValue
-
objectChanged
protected void objectChanged()Description copied from class:ObjectValueImplement this method to synchronize internal data with the new object value.- Overrides:
objectChangedin classObjectValue
-
getInternalString
Description copied from class:ValueReturn the internal string form of this value.- Overrides:
getInternalStringin classObjectValue
-
setInternalString
Description copied from class:ValueSet this value from the given string.- Overrides:
setInternalStringin classObjectValue
-