Class ClassLoaderStrategy
java.lang.Object
com.sun.jdo.api.persistence.model.ClassLoaderStrategy
- Version:
- %I%
- Author:
- mvatkina
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant 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 final StringConstant 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 final StringConstant 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 final StringSystem property key used to define the model behavior concerning multiple class loaders. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGet the value of the propertyPROPERTY_MULTIPLE_CLASS_LOADERSused to define the model behavior concerning multiple class loaders.static voidsetStrategy(String strategy) Sets the value of the propertyPROPERTY_MULTIPLE_CLASS_LOADERSused to define the model behavior concerning multiple class loaders.
-
Field Details
-
PROPERTY_MULTIPLE_CLASS_LOADERS
System property key used to define the model behavior concerning multiple class loaders. Value should be one ofMULTIPLE_CLASS_LOADERS_IGNORE,MULTIPLE_CLASS_LOADERS_RELOAD, orMULTIPLE_CLASS_LOADERS_ERROR- See Also:
-
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:
-
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:
-
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:
-
-
Constructor Details
-
ClassLoaderStrategy
public ClassLoaderStrategy()
-
-
Method Details
-
getStrategy
Get the value of the propertyPROPERTY_MULTIPLE_CLASS_LOADERSused 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, orMULTIPLE_CLASS_LOADERS_ERROR
-
setStrategy
Sets the value of the propertyPROPERTY_MULTIPLE_CLASS_LOADERSused to define the model behavior concerning multiple class loaders.- Parameters:
strategy- the new value of the property. Value should be one ofMULTIPLE_CLASS_LOADERS_IGNORE,MULTIPLE_CLASS_LOADERS_RELOAD, orMULTIPLE_CLASS_LOADERS_ERROR- See Also:
-