public class JavassistTypeInfoFactory extends Object implements TypeInfoFactory
This avoids recalculating things everytime a factory is constructed inside the same classloader
Modifier and Type | Field and Description |
---|---|
protected static JavassistTypeInfoFactoryImpl |
delegate
The delegate
|
Constructor and Description |
---|
JavassistTypeInfoFactory() |
Modifier and Type | Method and Description |
---|---|
TypeInfo |
getTypeInfo(Class<?> clazz)
Get a type info
|
TypeInfo |
getTypeInfo(String name,
ClassLoader cl)
Get a type info
|
TypeInfo |
getTypeInfo(Type type)
Get a type info
|
protected static JavassistTypeInfoFactoryImpl delegate
public TypeInfo getTypeInfo(Class<?> clazz)
TypeInfoFactory
getTypeInfo
in interface TypeInfoFactory
clazz
- the classpublic TypeInfo getTypeInfo(String name, ClassLoader cl) throws ClassNotFoundException
TypeInfoFactory
getTypeInfo
in interface TypeInfoFactory
name
- the class namecl
- the classloaderClassNotFoundException
- when there is no such classpublic TypeInfo getTypeInfo(Type type)
TypeInfoFactory
getTypeInfo
in interface TypeInfoFactory
type
- the typeCopyright © 2016 JBoss by Red Hat. All rights reserved.