|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.reflect.plugins.javassist.JavassistTypeInfoFactory
public class JavassistTypeInfoFactory
An javassist type factory that uses a static delegate.
This avoids recalculating things everytime a factory is constructed inside the same classloader
Field Summary | |
---|---|
protected static JavassistTypeInfoFactoryImpl |
delegate
The delegate |
Constructor Summary | |
---|---|
JavassistTypeInfoFactory()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static JavassistTypeInfoFactoryImpl delegate
Constructor Detail |
---|
public JavassistTypeInfoFactory()
Method Detail |
---|
public TypeInfo getTypeInfo(Class<?> clazz)
TypeInfoFactory
getTypeInfo
in interface TypeInfoFactory
clazz
- the class
public TypeInfo getTypeInfo(String name, ClassLoader cl) throws ClassNotFoundException
TypeInfoFactory
getTypeInfo
in interface TypeInfoFactory
name
- the class namecl
- the classloader
ClassNotFoundException
- when there is no such classpublic TypeInfo getTypeInfo(Type type)
TypeInfoFactory
getTypeInfo
in interface TypeInfoFactory
type
- the type
public MutableClassInfo createNewMutableClass(String name)
MutableTypeInfoFactory
createNewMutableClass
in interface MutableTypeInfoFactory
name
- the name of the class to be created
public 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 created
public MutableClassInfo createNewMutableInterface(String name)
MutableTypeInfoFactory
createNewMutableInterface
in interface MutableTypeInfoFactory
name
- the name of the interface to be created
public 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 created
public 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.
|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |