FileDocCategorySizeDatePackage
ClassLoaderStrategy.javaAPI DocGlassfish v2 API4831Fri May 04 22:34:42 BST 2007com.sun.jdo.api.persistence.model

ClassLoaderStrategy

public class ClassLoaderStrategy extends Object
author
mvatkina
version
%I%

Fields Summary
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 {@link #MULTIPLE_CLASS_LOADERS_IGNORE}, {@link #MULTIPLE_CLASS_LOADERS_RELOAD}, or {@link #MULTIPLE_CLASS_LOADERS_ERROR}
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.
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.
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.
private static String
_strategy
Value of the property used to define the model behavior concerning multiple class loaders.
Constructors Summary
Methods Summary
public static java.lang.StringgetStrategy()
Get the value of the property {@link #PROPERTY_MULTIPLE_CLASS_LOADER} used to define the model behavior concerning multiple class loaders.

return
the value of the property, one of {@link #MULTIPLE_CLASS_LOADERS_IGNORE}, {@link #MULTIPLE_CLASS_LOADERS_RELOAD}, or {@link #MULTIPLE_CLASS_LOADERS_ERROR}


	                                   	 
	    
	
		return _strategy;
	
public static voidsetStrategy(java.lang.String strategy)
Sets the value of the property {@link #PROPERTY_MULTIPLE_CLASS_LOADER} used to define the model behavior concerning multiple class loaders.

param
strategy the new value of the property. Value should be one of {@link #MULTIPLE_CLASS_LOADERS_IGNORE}, {@link #MULTIPLE_CLASS_LOADERS_RELOAD}, or {@link #MULTIPLE_CLASS_LOADERS_ERROR}
see
RuntimeModel#findClassLoader

		_strategy = strategy;