org.apache.openjpa.conf
Class CacheMarshallersValue

java.lang.Object
  extended by org.apache.openjpa.lib.conf.Value
      extended by org.apache.openjpa.lib.conf.ObjectValue
          extended by org.apache.openjpa.lib.conf.PluginListValue
              extended by org.apache.openjpa.conf.CacheMarshallersValue
All Implemented Interfaces:
Cloneable

public class CacheMarshallersValue
extends PluginListValue

A configuration value for handling and accessing cache marshallers.

Since:
1.1.0

Field Summary
 
Fields inherited from class org.apache.openjpa.lib.conf.Value
INVISIBLE
 
Constructor Summary
CacheMarshallersValue(Configuration conf)
           
 
Method Summary
 Map<String,CacheMarshaller> getInstancesAsMap()
           
static CacheMarshaller getMarshallerById(Configuration c, String id)
          Return the CacheMarshaller to use for caching metadata of id id.
 CacheMarshaller getMarshallerById(String id)
          Return the CacheMarshaller to use for caching metadata of id id.
protected  void initialize()
           
 Object instantiate(Class<?> elemType, Configuration conf, boolean fatal)
          Instantiate the plugins as instances of the given class.
 
Methods inherited from class org.apache.openjpa.lib.conf.PluginListValue
getClassNames, getInternalString, getProperties, getString, getValueType, objectChanged, setClassNames, setInternalString, setProperties, setString
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheMarshallersValue

public CacheMarshallersValue(Configuration conf)
Method Detail

instantiate

public Object instantiate(Class<?> elemType,
                          Configuration conf,
                          boolean fatal)
Description copied from class: PluginListValue
Instantiate the plugins as instances of the given class.

Overrides:
instantiate in class PluginListValue

getMarshallerById

public CacheMarshaller getMarshallerById(String id)
Return the CacheMarshaller to use for caching metadata of id id. If no marshaller exists for the id, returns NoOpCacheMarshaller.


getMarshallerById

public static CacheMarshaller getMarshallerById(Configuration c,
                                                String id)
Return the CacheMarshaller to use for caching metadata of id id. If no marshaller exists for the id, returns NoOpCacheMarshaller.


getInstancesAsMap

public Map<String,CacheMarshaller> getInstancesAsMap()

initialize

protected void initialize()


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.