|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.WeakClassCache
org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl
public class IntrospectionTypeInfoFactoryImpl
An introspection type factory. FIXME: use lazy loading to avoid reading the entire class model
| Field Summary |
|---|
| Fields inherited from class org.jboss.util.WeakClassCache |
|---|
cache |
| Constructor Summary | |
|---|---|
IntrospectionTypeInfoFactoryImpl()
|
|
| Method Summary | |
|---|---|
protected void |
generate(Class clazz,
Object result)
|
void |
generateTypeInfo(Class clazz,
ClassInfoImpl info)
Generate the type info for a class |
AnnotationValue[] |
getAnnotations(Object obj)
|
ClassInfo[] |
getClassInfos(Class[] classes)
Get the class infos for some classes |
ConstructorInfoImpl[] |
getConstructors(Class clazz,
ClassInfo declaring)
Get the constructors |
protected Constructor[] |
getDeclaredConstructors(Class clazz)
|
protected Field[] |
getDeclaredFields(Class clazz)
|
protected Method[] |
getDeclaredMethods(Class clazz)
|
FieldInfoImpl[] |
getFields(Class clazz,
ClassInfo declaring)
Get the fields |
InterfaceInfo[] |
getInterfaces(Class clazz)
Get the interfaces |
MethodInfoImpl[] |
getMethods(Class clazz,
ClassInfo declaring)
Get the methods |
ClassInfo |
getSuperClass(Class clazz)
|
TypeInfo |
getTypeInfo(Class clazz)
Get a type info |
TypeInfo |
getTypeInfo(String name,
ClassLoader cl)
Get a type info |
TypeInfo[] |
getTypeInfos(Class[] classes)
Get the type infos for some classes |
protected Object |
instantiate(Class clazz)
|
| Methods inherited from class org.jboss.util.WeakClassCache |
|---|
get, get, getClassLoaderCache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntrospectionTypeInfoFactoryImpl()
| Method Detail |
|---|
public void generateTypeInfo(Class clazz,
ClassInfoImpl info)
clazz - the classinfo - the class infopublic ClassInfo getSuperClass(Class clazz)
public AnnotationValue[] getAnnotations(Object obj)
public ConstructorInfoImpl[] getConstructors(Class clazz,
ClassInfo declaring)
clazz - the classdeclaring - the declaring class
public FieldInfoImpl[] getFields(Class clazz,
ClassInfo declaring)
clazz - the classdeclaring - the declaring class
public MethodInfoImpl[] getMethods(Class clazz,
ClassInfo declaring)
clazz - the classdeclaring - the declaring class
public InterfaceInfo[] getInterfaces(Class clazz)
clazz - the class
public TypeInfo[] getTypeInfos(Class[] classes)
classes - the classes
public ClassInfo[] getClassInfos(Class[] classes)
classes - the classes
public TypeInfo getTypeInfo(Class clazz)
TypeInfoFactory
getTypeInfo in interface TypeInfoFactoryclazz - the class
public TypeInfo getTypeInfo(String name,
ClassLoader cl)
throws ClassNotFoundException
TypeInfoFactory
getTypeInfo in interface TypeInfoFactoryname - the class namecl - the classloader
ClassNotFoundException - when there is no such classprotected Object instantiate(Class clazz)
instantiate in class org.jboss.util.WeakClassCache
protected void generate(Class clazz,
Object result)
generate in class org.jboss.util.WeakClassCacheprotected Constructor[] getDeclaredConstructors(Class clazz)
protected Field[] getDeclaredFields(Class clazz)
protected Method[] getDeclaredMethods(Class clazz)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||