1 23 24 29 30 package com.sun.jdo.api.persistence.model; 31 32 37 public class ClassLoaderStrategy 38 { 39 46 public static final String PROPERTY_MULTIPLE_CLASS_LOADERS = 47 "com.sun.jdo.api.persistence.model.multipleClassLoaders"; 49 55 public static final String MULTIPLE_CLASS_LOADERS_IGNORE = "ignore"; 57 63 public static final String MULTIPLE_CLASS_LOADERS_RELOAD = "reload"; 65 71 public static final String MULTIPLE_CLASS_LOADERS_ERROR = "error"; 73 76 private static String _strategy = System.getProperty( 77 PROPERTY_MULTIPLE_CLASS_LOADERS, MULTIPLE_CLASS_LOADERS_ERROR); 78 79 87 public static String getStrategy () 88 { 89 return _strategy; 90 } 91 92 101 public static void setStrategy (String strategy) 102 { 103 _strategy = strategy; 104 } 105 106 } 107 | Popular Tags |