public class JavassistTypeInfoFactory extends Object implements MutableTypeInfoFactory
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 |
|---|---|
MutableClassInfo |
createNewMutableClass(String name)
Creates a new MutableClass.
|
MutableClassInfo |
createNewMutableClass(String name,
ClassInfo superClass)
Creates a new MutableClass.
|
MutableClassInfo |
createNewMutableInterface(String name)
Creates a new mutable interface.
|
MutableClassInfo |
createNewMutableInterface(String name,
ClassInfo superClass)
Creates a new mutable interface.
|
MutableClassInfo |
getMutable(String name,
ClassLoader cl)
Gets the information for a MutableClass.
|
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)
TypeInfoFactorygetTypeInfo in interface TypeInfoFactoryclazz - the classpublic TypeInfo getTypeInfo(String name, ClassLoader cl) throws ClassNotFoundException
TypeInfoFactorygetTypeInfo in interface TypeInfoFactoryname - the class namecl - the classloaderClassNotFoundException - when there is no such classpublic TypeInfo getTypeInfo(Type type)
TypeInfoFactorygetTypeInfo in interface TypeInfoFactorytype - the typepublic MutableClassInfo createNewMutableClass(String name)
MutableTypeInfoFactorycreateNewMutableClass in interface MutableTypeInfoFactoryname - the name of the class to be createdpublic MutableClassInfo createNewMutableClass(String name, ClassInfo superClass)
MutableTypeInfoFactorycreateNewMutableClass in interface MutableTypeInfoFactoryname - the name of the class to be createdsuperClass - the super class of the class to be createdpublic MutableClassInfo createNewMutableInterface(String name)
MutableTypeInfoFactorycreateNewMutableInterface in interface MutableTypeInfoFactoryname - the name of the interface to be createdpublic MutableClassInfo createNewMutableInterface(String name, ClassInfo superClass)
MutableTypeInfoFactorycreateNewMutableInterface in interface MutableTypeInfoFactoryname - the name of the interface to be createdsuperClass - the super type of the interface to be createdpublic MutableClassInfo getMutable(String name, ClassLoader cl)
MutableTypeInfoFactorygetMutable in interface MutableTypeInfoFactoryname - the name of the class to be retrievedcl - the ClassLoader that should be used to retrieve the class. Note that,
if cl is null, the default ClassLoader will be used.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.