1 26 27 package org.objectweb.jonas.security.realm.factory; 28 29 import java.util.Hashtable ; 31 32 import javax.naming.Context ; 33 import javax.naming.Name ; 34 import javax.naming.spi.ObjectFactory ; 35 36 import org.objectweb.jonas.common.Log; 37 38 import org.objectweb.util.monolog.api.Logger; 39 40 45 public abstract class JResourceFactory implements ObjectFactory { 46 47 50 private static Logger logger = Log.getLogger(Log.JONAS_SECURITY_PREFIX); 51 52 69 public abstract Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) 70 throws Exception ; 71 72 75 public static Logger getLogger() { 76 return logger; 77 } 78 81 public static void setLogger(Logger logger) { 82 JResourceFactory.logger = logger; 83 } 84 } | Popular Tags |