1 4 package com.tc.object.bytecode; 5 6 import com.tc.object.loaders.ClassProvider; 7 import com.tc.object.loaders.NamedClassLoader; 8 9 10 public class MockClassProvider implements ClassProvider { 11 12 public MockClassProvider() { 13 super(); 14 } 15 16 public Class getClassFor(String className, String loaderDesc) throws ClassNotFoundException { 17 return getClass().getClassLoader().loadClass(className); 18 19 } 20 21 public String getLoaderDescriptionFor(Class clazz) { 22 return ""; 23 } 24 25 public ClassLoader getClassLoader(String loaderDesc) { 26 return getClass().getClassLoader(); 27 } 28 29 public String getLoaderDescriptionFor(ClassLoader loader) { 30 return ""; 31 } 32 33 public void registerNamedLoader(NamedClassLoader loader) { 34 } 36 37 } 38 | Popular Tags |