PlasticProxyFactory
insteadpublic interface ClassFactory
Modifier and Type | Method and Description |
---|---|
<T> T |
createProxy(Class<T> proxyInterface,
Class<? extends T> delegateClass,
ObjectCreator delegateCreator,
String description)
Deprecated.
Creates a proxy for an interface.
|
<T> T |
createProxy(Class<T> proxyInterface,
ObjectCreator delegateCreator,
String description)
Deprecated.
Creates a proxy for an interface.
|
ClassLoader |
getClassLoader()
Deprecated.
Returns the class loader used when creating new classes; this is generally the same as the current thread's
context class loader (except perhaps during testing).
|
Location |
getConstructorLocation(Constructor constructor)
Deprecated.
Return a string representation for the constructor (including class and parameters) and (if available) file name
and line number.
|
int |
getCreatedClassCount()
Deprecated.
Returns the number of classes (and interfaces) actually created.
|
Location |
getMethodLocation(Method method)
Deprecated.
Converts a method to a
Location , which includes information about the source file name and line number. |
Class |
importClass(Class clazz)
Deprecated.
Imports the class to make it referenceable within the factory.
|
ClassFab |
newClass(Class serviceInterface)
Deprecated.
Simplified version of
newClass(String, Class) that generates a name based on the service interface name,
extends from java.lang.Object, and automatically adds the serviceInterface to the returned ClassFab. |
ClassFab |
newClass(String name,
Class superClass)
Deprecated.
Creates a
ClassFab object for the given name; the new class is a subclass of the indicated class. |
ClassFab newClass(Class serviceInterface)
newClass(String, Class)
that generates a name based on the service interface name,
extends from java.lang.Object, and automatically adds the serviceInterface to the returned ClassFab. This is the
most common use when creating the kinds of proxies used throughout Tapestry IoC.serviceInterface
- ClassFab newClass(String name, Class superClass)
ClassFab
object for the given name; the new class is a subclass of the indicated class. The new
class is always public and concrete.name
- the full qualified name of the class to create (note that it is common to place created classes
in the default package)superClass
- the parent class, which is often java.lang.ObjectClass importClass(Class clazz)
clazz
- int getCreatedClassCount()
ClassLoader getClassLoader()
Location getMethodLocation(Method method)
Location
, which includes information about the source file name and line number.method
- to look upLocation getConstructorLocation(Constructor constructor)
<T> T createProxy(Class<T> proxyInterface, ObjectCreator delegateCreator, String description)
ObjectCreator
(which is accessed on each method invocation, so it
is responsible for caching of the true delegate). The description will be used for the toString() method
(unless toString() is part of the proxy interface).T
- type of proxyproxyInterface
- proxy interface classdelegateCreator
- creates the delegatedescription
- used for the toString() method<T> T createProxy(Class<T> proxyInterface, Class<? extends T> delegateClass, ObjectCreator delegateCreator, String description)
ObjectCreator
(which is accessed on each method invocation, so it
is responsible for caching of the true delegate). The description will be used for the toString() method
(unless toString() is part of the proxy interface).T
- type of proxyproxyInterface
- proxy interface classdelegateClass
- delegate classdelegateCreator
- creates the delegatedescription
- used for the toString() methodCopyright © 2003-2012 The Apache Software Foundation.