public class ClassLoaderStrategy extends Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
ClassLoaderStrategy() |
| Modifier and Type | Method and Description |
|---|---|
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. |
public static final String PROPERTY_MULTIPLE_CLASS_LOADERS
MULTIPLE_CLASS_LOADERS_IGNORE,
MULTIPLE_CLASS_LOADERS_RELOAD, or
MULTIPLE_CLASS_LOADERS_ERRORpublic static final String MULTIPLE_CLASS_LOADERS_IGNORE
public static final String MULTIPLE_CLASS_LOADERS_RELOAD
public static final String MULTIPLE_CLASS_LOADERS_ERROR
public static String getStrategy()
PROPERTY_MULTIPLE_CLASS_LOADERS used to define the model
behavior concerning multiple class loaders.MULTIPLE_CLASS_LOADERS_IGNORE,
MULTIPLE_CLASS_LOADERS_RELOAD, or
MULTIPLE_CLASS_LOADERS_ERRORpublic static void setStrategy(String strategy)
PROPERTY_MULTIPLE_CLASS_LOADERS used to define the model
behavior concerning multiple class loaders.strategy - the new value of the property. Value should be one of
MULTIPLE_CLASS_LOADERS_IGNORE,
MULTIPLE_CLASS_LOADERS_RELOAD, or
MULTIPLE_CLASS_LOADERS_ERRORRuntimeModel.findClassLoader(java.lang.String, java.lang.ClassLoader)Copyright © 2013. All Rights Reserved.