Package org.apache.openjpa.conf
Class BrokerValue
- java.lang.Object
-
- org.apache.openjpa.lib.conf.Value
-
- org.apache.openjpa.lib.conf.ObjectValue
-
- org.apache.openjpa.lib.conf.PluginValue
-
- org.apache.openjpa.conf.BrokerValue
-
- All Implemented Interfaces:
Cloneable
public class BrokerValue extends PluginValue
CustomPluginValue
that can efficiently createBrokerImpl
instances.- Since:
- 0.9.7
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_ALIAS
static String
KEY
static String
NON_FINALIZING_ALIAS
-
Constructor Summary
Constructors Constructor Description BrokerValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends BrokerImpl>
getTemplateBrokerType(Configuration c)
Object
newInstance(String clsName, Class type, Configuration conf, boolean fatal)
Allow subclasses to instantiate additional plugins.-
Methods inherited from class org.apache.openjpa.lib.conf.PluginValue
configure, getClassName, getInternalString, getProperties, getString, getValueType, instantiate, isSingleton, objectChanged, set, setClassName, setInternalString, setProperties, setString
-
Methods inherited from class org.apache.openjpa.lib.conf.ObjectValue
configure, get, instantiate, 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
-
-
-
-
Field Detail
-
KEY
public static final String KEY
- See Also:
- Constant Field Values
-
NON_FINALIZING_ALIAS
public static final String NON_FINALIZING_ALIAS
- See Also:
- Constant Field Values
-
DEFAULT_ALIAS
public static final String DEFAULT_ALIAS
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
public Object newInstance(String clsName, Class type, Configuration conf, boolean fatal)
Description copied from class:ObjectValue
Allow subclasses to instantiate additional plugins. This method does not perform configuration.- Overrides:
newInstance
in classObjectValue
-
getTemplateBrokerType
public Class<? extends BrokerImpl> getTemplateBrokerType(Configuration c)
-
-