|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.ioc.internal.services.CtClassSourceImpl
public class CtClassSourceImpl
Wrapper around Javassist's ClassPool
that manages the creation of new instances of CtClass
and converts finished CtClass's into instantiable Classes.
Constructor Summary | |
---|---|
CtClassSourceImpl(ClassFactoryClassPool pool,
ClassLoader loader)
|
Method Summary | |
---|---|
Class |
createClass(javassist.CtClass ctClass)
Used after constructing the CtClass fully, to convert it into a Class ready to be instantiated. |
int |
getCreatedClassCount()
Returns the number of classes (and interfaces) created by this source. |
javassist.CtClass |
newClass(String name,
Class superClass)
Createa a new CtClass instance. |
javassist.CtClass |
toCtClass(Class searchClass)
Converts an existing class to a CtClass instance. |
javassist.CtClass |
toCtClass(String name)
Converts a class name to a CtClass instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CtClassSourceImpl(ClassFactoryClassPool pool, ClassLoader loader)
Method Detail |
---|
public int getCreatedClassCount()
getCreatedClassCount
in interface CtClassSource
public javassist.CtClass toCtClass(Class searchClass)
CtClassSource
toCtClass
in interface CtClassSource
public javassist.CtClass toCtClass(String name)
CtClassSource
toCtClass
in interface CtClassSource
public javassist.CtClass newClass(String name, Class superClass)
CtClassSource
newClass
in interface CtClassSource
public Class createClass(javassist.CtClass ctClass)
CtClassSource
createClass
in interface CtClassSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |