1 22 package org.jboss.kernel.plugins.config; 23 24 import org.jboss.beans.info.spi.BeanInfo; 25 import org.jboss.config.spi.Configuration; 26 import org.jboss.kernel.plugins.AbstractKernelObject; 27 import org.jboss.kernel.spi.config.KernelConfig; 28 import org.jboss.reflect.spi.ClassInfo; 29 import org.jboss.reflect.spi.TypeInfo; 30 31 38 public abstract class AbstractKernelConfig extends AbstractKernelObject implements KernelConfig 39 { 40 41 protected Configuration configuration; 42 43 48 public AbstractKernelConfig(Configuration configuration) 49 { 50 this.configuration = configuration; 51 } 52 53 public BeanInfo getBeanInfo(String className, ClassLoader cl) throws Throwable 54 { 55 return configuration.getBeanInfo(className, cl); 56 } 57 58 public BeanInfo getBeanInfo(Class clazz) throws Throwable 59 { 60 return configuration.getBeanInfo(clazz); 61 } 62 63 public BeanInfo getBeanInfo(TypeInfo typeInfo) throws Throwable 64 { 65 return configuration.getBeanInfo(typeInfo); 66 } 67 68 public ClassInfo getClassInfo(String className, ClassLoader cl) throws Throwable 69 { 70 return configuration.getClassInfo(className, cl); 71 } 72 73 public ClassInfo getClassInfo(Class clazz) throws Throwable 74 { 75 return configuration.getClassInfo(clazz); 76 } 77 } 78 | Popular Tags |