1 package org.myoodb.core; 25 26 public final class ClassManager extends AbstractManager 27 { 28 protected org.myoodb.core.ClassLoader m_classLoader; 29 30 public ClassManager() 31 { 32 } 33 34 public void startup() throws Exception 35 { 36 dropClasses(); 37 } 38 39 public void shutdown() throws Exception 40 { 41 } 42 43 public Class getClass(String name) throws ClassNotFoundException 44 { 45 try 46 { 47 return m_classLoader.loadClass(name); 48 } 49 catch (java.lang.ClassNotFoundException e) 50 { 51 throw new ClassNotFoundException (e.getMessage(), e); 52 } 53 } 54 55 public void dropClasses() throws Exception 56 { 57 m_classLoader = new org.myoodb.core.ClassLoader(); 58 } 59 } 60 | Popular Tags |