1 21 22 package uk.org.primrose.pool.datasource; 23 24 import uk.org.primrose.pool.jmx.*; 25 import java.io.PrintWriter ; 26 import javax.naming.Context ; 27 import javax.naming.InitialContext ; 28 import javax.naming.NamingException ; 29 import java.sql.Connection ; 30 import javax.sql.DataSource ; 31 import java.util.Hashtable ; 32 33 import javax.naming.Context ; 34 import javax.naming.Name ; 35 import javax.naming.Reference ; 36 import javax.naming.spi.ObjectFactory ; 37 38 public class ShutdownPoolFactory implements ObjectFactory { 39 40 public ShutdownPoolFactory() { 41 } 42 43 public Object getObjectInstance(Object refObj, Name nm, Context ctx, Hashtable env) throws Exception { 44 return new ShutdownPool(); 45 } 46 47 48 } 49 | Popular Tags |