|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.collection.WeakClassCache
org.jboss.reflect.plugins.javassist.JavassistTypeInfoFactoryImpl
public class JavassistTypeInfoFactoryImpl
A javassist type factory.
| Field Summary |
|---|
| Fields inherited from class org.jboss.util.collection.WeakClassCache |
|---|
cache |
| Constructor Summary | |
|---|---|
JavassistTypeInfoFactoryImpl()
|
|
| Method Summary | |
|---|---|
protected String |
convertName(javassist.CtClass clazz)
Convert name |
AnnotationValue |
createAnnotationValue(AnnotationInfo info,
Object ann)
Create an annotation from the underlying implementation and its info type |
protected void |
generate(Class clazz,
Object result)
|
AnnotationValue[] |
getAnnotations(Object obj)
Get the annotations for the annotated object |
protected javassist.CtClass |
getCtClass(String name)
Get the CtClass |
TypeInfo |
getTypeInfo(Class<?> clazz)
Get a type info |
protected TypeInfo |
getTypeInfo(javassist.CtClass ctClass)
Get the type info |
TypeInfo |
getTypeInfo(String name,
ClassLoader cl)
Get a type info |
TypeInfo |
getTypeInfo(Type type)
Get a type info |
protected Object |
instantiate(Class clazz)
|
static NoClassDefFoundError |
raiseClassNotFound(String name,
ClassNotFoundException e)
Raise NoClassDefFoundError for javassist not found |
static NoClassDefFoundError |
raiseClassNotFound(String name,
javassist.NotFoundException e)
Raise NoClassDefFoundError for javassist not found |
static NoClassDefFoundError |
raiseFieldNotFound(String name,
javassist.NotFoundException e)
Raise NoClassDefFoundError for javassist not found |
static NoClassDefFoundError |
raiseMethodNotFound(String name,
javassist.NotFoundException e)
Raise NoClassDefFoundError for javassist not found |
| Methods inherited from class org.jboss.util.collection.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 JavassistTypeInfoFactoryImpl()
| Method Detail |
|---|
public static NoClassDefFoundError raiseClassNotFound(String name,
javassist.NotFoundException e)
throws NoClassDefFoundError
name - the namee - the not found error
NoClassDefFoundError - always
public static NoClassDefFoundError raiseClassNotFound(String name,
ClassNotFoundException e)
throws NoClassDefFoundError
name - the namee - the not found error
NoClassDefFoundError - always
public static NoClassDefFoundError raiseMethodNotFound(String name,
javassist.NotFoundException e)
throws NoClassDefFoundError
name - the namee - the not found error
NoClassDefFoundError - always
public static NoClassDefFoundError raiseFieldNotFound(String name,
javassist.NotFoundException e)
throws NoClassDefFoundError
name - the namee - the not found error
NoClassDefFoundError - alwaysprotected Object instantiate(Class clazz)
instantiate in class org.jboss.util.collection.WeakClassCacheprotected TypeInfo getTypeInfo(javassist.CtClass ctClass)
ctClass - the ctClass
protected String convertName(javassist.CtClass clazz)
clazz - the class
protected javassist.CtClass getCtClass(String name)
name - the name
protected void generate(Class clazz,
Object result)
generate in class org.jboss.util.collection.WeakClassCachepublic 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 classpublic TypeInfo getTypeInfo(Type type)
TypeInfoFactory
getTypeInfo in interface TypeInfoFactorytype - the type
public AnnotationValue[] getAnnotations(Object obj)
AnnotationHelper
getAnnotations in interface AnnotationHelperobj - the annotated object
public AnnotationValue createAnnotationValue(AnnotationInfo info,
Object ann)
AnnotationHelper
createAnnotationValue in interface AnnotationHelperinfo - the annotation infoann - the underlying annotation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||