public class BytecodeTypeInfoFactory 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 BytecodeTypeInfoFactoryImpl |
delegate
The delegate
|
Constructor and Description |
---|
BytecodeTypeInfoFactory() |
Modifier and Type | Method and Description |
---|---|
ClassLoaderFinder |
getClassLoaderFinder()
Get the classloader finder
|
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
|
void |
setClassLoaderFinder(ClassLoaderFinder finder)
Set the classloader finder
|
protected static BytecodeTypeInfoFactoryImpl 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 typepublic ClassLoaderFinder getClassLoaderFinder()
public void setClassLoaderFinder(ClassLoaderFinder finder)
the
- classloader finder. If null is passed in ClassLoaderFinder.Default
is usedCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.