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)
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 MutableClassInfo createNewMutableClass(String name)
MutableTypeInfoFactory
createNewMutableClass
in interface MutableTypeInfoFactory
name
- the name of the class to be createdpublic MutableClassInfo createNewMutableClass(String name, ClassInfo superClass)
MutableTypeInfoFactory
createNewMutableClass
in interface MutableTypeInfoFactory
name
- the name of the class to be createdsuperClass
- the super class of the class to be createdpublic MutableClassInfo createNewMutableInterface(String name)
MutableTypeInfoFactory
createNewMutableInterface
in interface MutableTypeInfoFactory
name
- the name of the interface to be createdpublic MutableClassInfo createNewMutableInterface(String name, ClassInfo superClass)
MutableTypeInfoFactory
createNewMutableInterface
in interface MutableTypeInfoFactory
name
- the name of the interface to be createdsuperClass
- the super type of the interface to be createdpublic MutableClassInfo getMutable(String name, ClassLoader cl)
MutableTypeInfoFactory
getMutable
in interface MutableTypeInfoFactory
name
- 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.