Package org.apache.openjpa.lib.conf
Class PluginValue
- java.lang.Object
- 
- org.apache.openjpa.lib.conf.Value
- 
- org.apache.openjpa.lib.conf.ObjectValue
- 
- org.apache.openjpa.lib.conf.PluginValue
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 - Direct Known Subclasses:
- BrokerFactoryValue,- BrokerValue,- EntityManagerFactoryValue,- MappingFactoryValue,- MappingRepositoryValue,- MetaDataRepositoryValue,- QueryCompilationCacheValue,- RemoteCommitProviderValue,- SeqValue
 
 public class PluginValue extends ObjectValue A pluginValueconsisting of plugin name and properties. Plugins should be specified in the form:
 <plugin-name>(<prop1>=<val1>, ...)
 Both the plugin name and prop list are optional, so that the following forms are also valid:
 <plugin-name>
 <prop1>=<val1> ...Defaults and aliases on plugin values apply only to the plugin name.- Author:
- Abe White
 
- 
- 
Constructor SummaryConstructors Constructor Description PluginValue(java.lang.String prop, boolean singleton)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectconfigure(java.lang.Object obj, Configuration conf, boolean fatal)Configure the given object.java.lang.StringgetClassName()The plugin class name.protected java.lang.StringgetInternalString()Return the internal string form of this value.java.lang.StringgetProperties()The plugin properties.java.lang.StringgetString()Return a stringified version of this value.java.lang.Class<java.lang.Object>getValueType()Returns the type of the property that this Value represents.java.lang.Objectinstantiate(java.lang.Class<?> type, Configuration conf, boolean fatal)Instantiate the plugin as an instance of the given class.booleanisSingleton()Whether this value is a singleton.protected voidobjectChanged()Implement this method to synchronize internal data with the new object value.voidset(java.lang.Object obj, boolean derived)The internal value.voidsetClassName(java.lang.String name)The plugin class name.protected voidsetInternalString(java.lang.String str)Set this value from the given string.voidsetProperties(java.lang.String props)The plugin properties.voidsetString(java.lang.String str)Set this value from the given string.- 
Methods inherited from class org.apache.openjpa.lib.conf.ObjectValueconfigure, get, instantiate, newInstance, set, setInternalObject
 - 
Methods inherited from class org.apache.openjpa.lib.conf.ValueaddEquivalentKey, 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- 
isSingletonpublic boolean isSingleton() Whether this value is a singleton.
 - 
getClassNamepublic java.lang.String getClassName() The plugin class name.
 - 
setClassNamepublic void setClassName(java.lang.String name) The plugin class name.
 - 
getPropertiespublic java.lang.String getProperties() The plugin properties.
 - 
setPropertiespublic void setProperties(java.lang.String props) The plugin properties.
 - 
instantiatepublic java.lang.Object instantiate(java.lang.Class<?> type, Configuration conf, boolean fatal)Instantiate the plugin as an instance of the given class.- Overrides:
- instantiatein class- ObjectValue
 
 - 
configurepublic java.lang.Object configure(java.lang.Object obj, Configuration conf, boolean fatal)Configure the given object.- Overrides:
- configurein class- ObjectValue
 
 - 
setpublic void set(java.lang.Object obj, boolean derived)Description copied from class:ObjectValueThe internal value.- Overrides:
- setin class- ObjectValue
- derived- if true, this value was derived from other properties
 
 - 
getStringpublic java.lang.String getString() Description copied from class:ValueReturn a stringified version of this value. If the current value has a short alias key, the alias key is returned.
 - 
setStringpublic void setString(java.lang.String str) Description copied from class:ValueSet this value from the given string. If the given string is null or empty and a default is defined, the default is used. If the given string(or default) is an alias key, it will be converted to the corresponding value internally.
 If this Value is being set to a non-default value for the first time (as designated byoriginalStringbeing null), then the value is remembered as original. This original value is used for equality and hashCode computation if this Value isdynamic.
 - 
getValueTypepublic java.lang.Class<java.lang.Object> getValueType() Description copied from class:ValueReturns the type of the property that this Value represents.- Overrides:
- getValueTypein class- ObjectValue
 
 - 
objectChangedprotected void objectChanged() Description copied from class:ObjectValueImplement this method to synchronize internal data with the new object value.- Overrides:
- objectChangedin class- ObjectValue
 
 - 
getInternalStringprotected java.lang.String getInternalString() Description copied from class:ValueReturn the internal string form of this value.- Overrides:
- getInternalStringin class- ObjectValue
 
 - 
setInternalStringprotected void setInternalString(java.lang.String str) Description copied from class:ValueSet this value from the given string.- Overrides:
- setInternalStringin class- ObjectValue
 
 
- 
 
-