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
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(String prop) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getClassNames()The plugin class names.protected StringgetInternalString()Return the internal string form of this value.String[]getProperties()The plugin properties.StringgetString()Override to recognize aliases of the class name without the attached properties string.Class<Object[]>getValueType()Returns the type of the property that this Value represents.Objectinstantiate(Class<?> elemType, Configuration conf, boolean fatal)Instantiate the plugins as instances of the given class.protected voidobjectChanged()Implement 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.voidsetString(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 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
PluginListValue
public PluginListValue(String prop)
 
 - 
 
- 
Method Detail
- 
getClassNames
public String[] getClassNames()
The plugin class names. 
- 
setClassNames
public void setClassNames(String[] names)
The plugin class names. 
- 
getProperties
public String[] getProperties()
The plugin properties. 
- 
setProperties
public void setProperties(String[] props)
The plugin properties. 
- 
instantiate
public Object instantiate(Class<?> elemType, Configuration conf, boolean fatal)
Instantiate the plugins as instances of the given class.- Overrides:
 instantiatein classObjectValue
 
- 
getString
public String getString()
Override to recognize aliases of the class name without the attached properties string. 
- 
setString
public void setString(String str)
Override to recognize aliases of the plugin name without the attached properties string. 
- 
getValueType
public Class<Object[]> 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
protected String getInternalString()
Description copied from class:ValueReturn the internal string form of this value.- Overrides:
 getInternalStringin classObjectValue
 
- 
setInternalString
protected void setInternalString(String str)
Description copied from class:ValueSet this value from the given string.- Overrides:
 setInternalStringin classObjectValue
 
 - 
 
 -