| java.lang.Object jodd.proxetta.Proxetta
Proxetta | public class Proxetta (Code) | | Proxetta creates proxy classes in the run-time.
For proxy creation it is needed to have the target class (or name or InputStream )
and one or more
ProxyDefinition proxy definitions .
Proxetta will scan target class and check if there are methods to proxyfy (upon definition
in provided proxy definitions}. If there are matched methods, new proxy class
will be created.
If no matching method founded, Proxetta may or may not create an empty proxy class.
This behaviour is defined by using forced mode during creation.
|
Method Summary | |
public static byte[] | createProxy(Class target, ProxyDefinition... proxyDefinitions) Generates class bytecodes for proxy for provided class. | public static byte[] | createProxy(Class target, boolean forced, ProxyDefinition... proxyDefinitions) Generates class bytecodes for proxy for provided class name. | public static byte[] | createProxy(String targetName, ProxyDefinition... proxyDefinitions) Generates class bytecodes for proxy for provided class name. | public static byte[] | createProxy(String targetName, boolean forced, ProxyDefinition... proxyDefinitions) Generates class bytecodes for proxy for provided class name. | public static byte[] | createProxy(InputStream in, ProxyDefinition... proxyDefinitions) Generates class bytecodes for proxy for class provided from InputStream . | public static byte[] | createProxy(InputStream in, boolean forced, ProxyDefinition... proxyDefinitions) Generates class bytecodes for proxy for class provided from InputStream . | public static Class | defineProxy(Class target, ProxyDefinition... proxyDefinitions) | public static Class | defineProxy(Class target, boolean forced, ProxyDefinition... proxyDefinitions) | public static Class | defineProxy(Class target, ClassLoader classLoader, ProxyDefinition... proxyDefinitions) | public static Class | defineProxy(Class target, ClassLoader classLoader, boolean forced, ProxyDefinition... proxyDefinitions) | public static Class | defineProxy(String targetName, ProxyDefinition... proxyDefinitions) | public static Class | defineProxy(String targetName, boolean forced, ProxyDefinition... proxyDefinitions) | public static Class | defineProxy(String targetName, ClassLoader classLoader, ProxyDefinition... proxyDefinitions) | public static Class | defineProxy(String targetName, ClassLoader classLoader, boolean forced, ProxyDefinition... proxyDefinitions) | protected static ClassReader | newClassReader(String targetName) | protected static ClassReader | newClassReader(InputStream in) |
createProxy | public static byte[] createProxy(Class target, boolean forced, ProxyDefinition... proxyDefinitions)(Code) | | Generates class bytecodes for proxy for provided class name.
It allows forced creation, when proxy is created even if there are no
matched methods for proxyfying.
|
createProxy | public static byte[] createProxy(String targetName, boolean forced, ProxyDefinition... proxyDefinitions)(Code) | | Generates class bytecodes for proxy for provided class name.
It allows forced creation, when proxy is created even if there are no
matched methods for proxyfying.
|
createProxy | public static byte[] createProxy(InputStream in, boolean forced, ProxyDefinition... proxyDefinitions)(Code) | | Generates class bytecodes for proxy for class provided from InputStream .
It allows forced creation, when proxy is created even if there are no
matched methods for proxyfying.
|
newClassReader | protected static ClassReader newClassReader(String targetName)(Code) | | |
|
|