|
|||||||||||
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
An introspection type factory. FIXME: use lazy loading to avoid reading the entire class model needs changes to the classinfo model to use interfaces
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 |
FieldInfoImpl[] |
getFields(Class clazz,
ClassInfo declaring)
Get the fields |
InterfaceInfo[] |
getInterfaces(Class clazz)
Get the interfaces |
protected MethodInfoImpl[] |
getMethods(Class clazz,
ClassInfo declaring)
Get the methods |
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 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
protected 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 TypeInfoFactory
clazz
- the class
public TypeInfo getTypeInfo(String name, ClassLoader cl) throws ClassNotFoundException
TypeInfoFactory
getTypeInfo
in interface TypeInfoFactory
name
- the class namecl
- the classloader
ClassNotFoundException
- when there is no such classprotected Object instantiate(Class clazz)
protected void generate(Class clazz, Object result)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |