1 23 24 25 26 31 32 package com.sun.jdo.spi.persistence.support.sqlstore.ejb; 33 34 import com.sun.appserv.server.ServerLifecycleImpl; 35 import com.sun.jdo.spi.persistence.utility.logging.LogHelper; 36 37 38 45 public class PersistenceManagerServiceImpl extends ServerLifecycleImpl { 46 47 static { 49 LogHelper.registerLoggerFactory(new LoggerFactoryiAS()); 50 } 51 52 private static final Class helper = forceInit(SunContainerHelper.class); 55 56 private static final Class listener = 59 forceInit("com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl"); 60 61 69 private static <T> Class <T> forceInit(Class <T> klass) { 70 try { 71 Class.forName(klass.getName(), true, klass.getClassLoader()); 72 } catch (ClassNotFoundException e) { 73 throw new AssertionError (e); } 75 return klass; 76 } 77 78 private static <T> Class <T> forceInit(String klassName) { 79 Class klass; 80 try { 81 klass = Class.forName(klassName); 82 } catch (ClassNotFoundException e) { 83 throw new AssertionError (e); } 85 return klass; 86 } 87 88 } 89 | Popular Tags |