com.sun.jdo.api.persistence.model
Class ClassLoaderStrategy

java.lang.Object
  extended by com.sun.jdo.api.persistence.model.ClassLoaderStrategy

public class ClassLoaderStrategy
extends Object

Version:
%I%
Author:
mvatkina

Field Summary
static String MULTIPLE_CLASS_LOADERS_ERROR
          Constant representing the value "error" of the System property com.sun.jdo.api.persistence.model.multipleClassLoaders Setting the system property to "reload" causes the model to throw an exception if the same class is used with a diferent class loader.
static String MULTIPLE_CLASS_LOADERS_IGNORE
          Constant representing the value "ignore" of the System property com.sun.jdo.api.persistence.model.multipleClassLoaders Setting the system property to "ignore" causes the model to ignore any new class loader for the same fully qualified class name.
static String MULTIPLE_CLASS_LOADERS_RELOAD
          Constant representing the value "reload" of the System property com.sun.jdo.api.persistence.model.multipleClassLoaders Setting the system property to "reload" causes the model to reload the class mapping if it is specified with a new class loader.
static String PROPERTY_MULTIPLE_CLASS_LOADERS
          System property key used to define the model behavior concerning multiple class loaders.
 
Constructor Summary
ClassLoaderStrategy()
           
 
Method Summary
static String getStrategy()
          Get the value of the property PROPERTY_MULTIPLE_CLASS_LOADERS used to define the model behavior concerning multiple class loaders.
static void setStrategy(String strategy)
          Sets the value of the property PROPERTY_MULTIPLE_CLASS_LOADERS used to define the model behavior concerning multiple class loaders.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_MULTIPLE_CLASS_LOADERS

public static final String PROPERTY_MULTIPLE_CLASS_LOADERS
System property key used to define the model behavior concerning multiple class loaders. Value should be one of MULTIPLE_CLASS_LOADERS_IGNORE, MULTIPLE_CLASS_LOADERS_RELOAD, or MULTIPLE_CLASS_LOADERS_ERROR

See Also:
Constant Field Values

MULTIPLE_CLASS_LOADERS_IGNORE

public static final String MULTIPLE_CLASS_LOADERS_IGNORE
Constant representing the value "ignore" of the System property com.sun.jdo.api.persistence.model.multipleClassLoaders Setting the system property to "ignore" causes the model to ignore any new class loader for the same fully qualified class name.

See Also:
RuntimeModel.findClassLoader(java.lang.String, java.lang.ClassLoader), Constant Field Values

MULTIPLE_CLASS_LOADERS_RELOAD

public static final String MULTIPLE_CLASS_LOADERS_RELOAD
Constant representing the value "reload" of the System property com.sun.jdo.api.persistence.model.multipleClassLoaders Setting the system property to "reload" causes the model to reload the class mapping if it is specified with a new class loader.

See Also:
RuntimeModel.findClassLoader(java.lang.String, java.lang.ClassLoader), Constant Field Values

MULTIPLE_CLASS_LOADERS_ERROR

public static final String MULTIPLE_CLASS_LOADERS_ERROR
Constant representing the value "error" of the System property com.sun.jdo.api.persistence.model.multipleClassLoaders Setting the system property to "reload" causes the model to throw an exception if the same class is used with a diferent class loader.

See Also:
RuntimeModel.findClassLoader(java.lang.String, java.lang.ClassLoader), Constant Field Values
Constructor Detail

ClassLoaderStrategy

public ClassLoaderStrategy()
Method Detail

getStrategy

public static String getStrategy()
Get the value of the property PROPERTY_MULTIPLE_CLASS_LOADERS used to define the model behavior concerning multiple class loaders.

Returns:
the value of the property, one of MULTIPLE_CLASS_LOADERS_IGNORE, MULTIPLE_CLASS_LOADERS_RELOAD, or MULTIPLE_CLASS_LOADERS_ERROR

setStrategy

public static void setStrategy(String strategy)
Sets the value of the property PROPERTY_MULTIPLE_CLASS_LOADERS used to define the model behavior concerning multiple class loaders.

Parameters:
strategy - the new value of the property. Value should be one of MULTIPLE_CLASS_LOADERS_IGNORE, MULTIPLE_CLASS_LOADERS_RELOAD, or MULTIPLE_CLASS_LOADERS_ERROR
See Also:
RuntimeModel.findClassLoader(java.lang.String, java.lang.ClassLoader)


Copyright © 2012 GlassFish Community. All Rights Reserved.