|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.ioc.internal.services.PlasticProxyFactoryImpl
public class PlasticProxyFactoryImpl
| Constructor Summary | |
|---|---|
PlasticProxyFactoryImpl(ClassLoader parentClassLoader,
org.slf4j.Logger logger)
|
|
PlasticProxyFactoryImpl(PlasticManager manager,
org.slf4j.Logger logger)
|
|
| Method Summary | ||
|---|---|---|
void |
addPlasticClassListener(PlasticClassListener listener)
|
|
|
createProxy(Class<T> interfaceType,
ObjectCreator<T> creator,
String description)
Creates a proxy instance that delegates all methods through a corresponding ObjectCreator. |
|
|
createProxy(Class<T> interfaceType,
PlasticClassTransformer callback)
Creates a proxy object that implements the indicated interface, then invokes the callback to further configure the proxy. |
|
PlasticClassTransformation |
createProxyTransformation(Class interfaceType)
Creates the underlying PlasticClassTransformation for an interface proxy. |
|
ClassLoader |
getClassLoader()
Returns the class loader used when creating new classes, this is a child class loader of another class loader (usually, the thread's context class loader). |
|
Location |
getConstructorLocation(Constructor constructor)
Return a string representation for the constructor (including class and parameters) and (if available) file name and line number. |
|
Location |
getMemberLocation(Member member,
String methodName,
String memberTypeDesc,
String textDescription)
|
|
Location |
getMethodLocation(Method method)
Converts a method to a Location, which includes information about the source file name and line number. |
|
void |
removePlasticClassListener(PlasticClassListener listener)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlasticProxyFactoryImpl(ClassLoader parentClassLoader,
org.slf4j.Logger logger)
public PlasticProxyFactoryImpl(PlasticManager manager,
org.slf4j.Logger logger)
| Method Detail |
|---|
public ClassLoader getClassLoader()
PlasticProxyFactory
getClassLoader in interface PlasticProxyFactory
public <T> ClassInstantiator<T> createProxy(Class<T> interfaceType,
PlasticClassTransformer callback)
PlasticProxyFactory
createProxy in interface PlasticProxyFactoryinterfaceType - interface implemented by proxycallback - configures the proxy
public PlasticClassTransformation createProxyTransformation(Class interfaceType)
PlasticProxyFactoryPlasticClassTransformation for an interface proxy. This should only be
used in the cases where encapsulating the PlasticClass construction into a callback is not feasible (which is the case for some of the older APIs inside Tapestry IoC).
createProxyTransformation in interface PlasticProxyFactoryinterfaceType - class proxy will extend from
public <T> T createProxy(Class<T> interfaceType,
ObjectCreator<T> creator,
String description)
PlasticProxyFactoryObjectCreator.createObject() (the
creator implementation may decide to
cache the return value as appropriate).
createProxy in interface PlasticProxyFactoryT - type of proxyinterfaceType - interface class for proxycreator - object responsible for creating the real objectdescription - the toString() of the proxy
public Location getMethodLocation(Method method)
PlasticProxyFactoryLocation, which includes information about the source file name and line number.
getMethodLocation in interface PlasticProxyFactorymethod - to look up
public Location getConstructorLocation(Constructor constructor)
PlasticProxyFactory
getConstructorLocation in interface PlasticProxyFactory
public Location getMemberLocation(Member member,
String methodName,
String memberTypeDesc,
String textDescription)
public void addPlasticClassListener(PlasticClassListener listener)
addPlasticClassListener in interface PlasticClassListenerHubpublic void removePlasticClassListener(PlasticClassListener listener)
removePlasticClassListener in interface PlasticClassListenerHub
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||