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:
java.lang.Cloneable
- Direct Known Subclasses:
CacheMarshallersValue
public class PluginListValue extends ObjectValue
A list of plugins. Defaults and aliases on plugin lists apply only to individual class names.- Author:
- Abe White
- See Also:
PluginValue
-
-
Constructor Summary
Constructors Constructor Description PluginListValue(java.lang.String prop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getClassNames()
The plugin class names.protected java.lang.String
getInternalString()
Return the internal string form of this value.java.lang.String[]
getProperties()
The plugin properties.java.lang.String
getString()
Override to recognize aliases of the class name without the attached properties string.java.lang.Class<java.lang.Object[]>
getValueType()
Returns the type of the property that this Value represents.java.lang.Object
instantiate(java.lang.Class<?> elemType, Configuration conf, boolean fatal)
Instantiate the plugins as instances of the given class.protected void
objectChanged()
Implement this method to synchronize internal data with the new object value.void
setClassNames(java.lang.String[] names)
The plugin class names.protected void
setInternalString(java.lang.String str)
Set this value from the given string.void
setProperties(java.lang.String[] props)
The plugin properties.void
setString(java.lang.String str)
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
-
-
-
-
Method Detail
-
getClassNames
public java.lang.String[] getClassNames()
The plugin class names.
-
setClassNames
public void setClassNames(java.lang.String[] names)
The plugin class names.
-
getProperties
public java.lang.String[] getProperties()
The plugin properties.
-
setProperties
public void setProperties(java.lang.String[] props)
The plugin properties.
-
instantiate
public java.lang.Object instantiate(java.lang.Class<?> elemType, Configuration conf, boolean fatal)
Instantiate the plugins as instances of the given class.- Overrides:
instantiate
in classObjectValue
-
getString
public java.lang.String getString()
Override to recognize aliases of the class name without the attached properties string.
-
setString
public void setString(java.lang.String str)
Override to recognize aliases of the plugin name without the attached properties string.
-
getValueType
public java.lang.Class<java.lang.Object[]> 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
protected java.lang.String getInternalString()
Description copied from class:Value
Return the internal string form of this value.- Overrides:
getInternalString
in classObjectValue
-
setInternalString
protected void setInternalString(java.lang.String str)
Description copied from class:Value
Set this value from the given string.- Overrides:
setInternalString
in classObjectValue
-
-