| Package | Description |
|---|---|
| com.thoughtworks.proxy.factory |
Different implementations of the ProxyFactory interface.
|
| com.thoughtworks.proxy.kit |
Utility classes building the toys.
|
| com.thoughtworks.proxy.toys.decorate |
A toy to decorate the interaction with another object.
|
| com.thoughtworks.proxy.toys.delegate |
A toy to delegate method calls to another object.
|
| com.thoughtworks.proxy.toys.dispatch |
A toy to dispatch method calls to different objects.
|
| com.thoughtworks.proxy.toys.echo |
A toy to trace method calls to objects.
|
| com.thoughtworks.proxy.toys.failover |
A toy to handle failover situations.
|
| com.thoughtworks.proxy.toys.future |
A toy to delay method execution into future.
|
| com.thoughtworks.proxy.toys.hotswap |
A toy to hot swap instances.
|
| com.thoughtworks.proxy.toys.multicast |
A toy to perform a single call on multiple objects and manage the
results.
|
| com.thoughtworks.proxy.toys.nullobject |
A toy to create dummy null objects with intelligent behavior.
|
| com.thoughtworks.proxy.toys.pool |
A toy to create object pools based on proxies.
|
| com.thoughtworks.proxy.toys.privilege |
A toy to run method calls as privileged actions.
|
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
AbstractProxyFactory
An abstract implementation of a ProxyFactory.
|
class |
CglibProxyFactory
A
ProxyFactory based on CGLIB. |
class |
StandardProxyFactory
A
ProxyFactory based on a JDK. |
| Modifier and Type | Field and Description |
|---|---|
private static ProxyFactory |
CglibProxyFactory.standardProxyFactory |
| Modifier and Type | Method and Description |
|---|---|
static void |
ReflectionUtils.addIfClassProxyingSupportedAndNotObject(java.lang.Class<?> type,
java.util.Set<java.lang.Class<?>> interfaces,
ProxyFactory proxyFactory)
Add the given type to the set of interfaces, if the given ProxyFactory supports proxy generation for this type.
|
| Modifier and Type | Method and Description |
|---|---|
T |
Decorating.DecoratingBuild.build(ProxyFactory proxyFactory)
Creating a decorating proxy for an object using a special
ProxyFactory. |
| Modifier and Type | Field and Description |
|---|---|
private ProxyFactory |
DelegatingInvoker.proxyFactory |
| Modifier and Type | Method and Description |
|---|---|
protected ProxyFactory |
DelegatingInvoker.getProxyFactory()
Retrieve the
ProxyFactory to use. |
| Modifier and Type | Method and Description |
|---|---|
T |
Delegating.DelegatingBuild.build(ProxyFactory factory)
Creating a delegating proxy for an object using a special
ProxyFactory. |
| Constructor and Description |
|---|
DelegatingInvoker(ProxyFactory proxyFactory,
ObjectReference<T> delegateReference,
DelegationMode delegationMode)
Construct a DelegatingInvoker.
|
| Modifier and Type | Method and Description |
|---|---|
private T |
Dispatching.build(ProxyFactory factory) |
T |
Dispatching.DispatchingBuild.build(ProxyFactory factory)
Create a dispatching proxy of given types for the given objects using a special
ProxyFactory. |
| Constructor and Description |
|---|
DispatchingInvoker(ProxyFactory proxyFactory,
java.lang.Class<?>[] types,
ObjectReference<java.lang.Object>[] delegateReferences)
Construct a DispatchingInvoker.
|
| Modifier and Type | Field and Description |
|---|---|
private ProxyFactory |
EchoDecorator.factory |
| Modifier and Type | Method and Description |
|---|---|
T |
Echoing.EchoingBuild.build(ProxyFactory proxyFactory)
Creating a delegating proxy for an object using a special
ProxyFactory. |
| Constructor and Description |
|---|
EchoDecorator(java.io.PrintWriter out,
ProxyFactory factory)
Construct an EchoingDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
T |
Failover.FailoverBuild.build(ProxyFactory proxyFactory)
Create a proxy of a specific types with failover capability using the given objects.
|
| Constructor and Description |
|---|
FailoverInvoker(java.lang.Class<?>[] types,
ProxyFactory proxyFactory,
T[] delegates,
java.lang.Class<? extends java.lang.Throwable> exceptionClass)
Construct a FailoverInvoker.
|
| Modifier and Type | Field and Description |
|---|---|
private ProxyFactory |
FutureInvoker.proxyFactory |
| Modifier and Type | Method and Description |
|---|---|
T |
Future.FutureBuild.build(ProxyFactory factory)
Create a proxy with asynchronously called methods.
|
| Constructor and Description |
|---|
FutureInvoker(java.lang.Object target,
ProxyFactory proxyFactory,
java.util.concurrent.ExecutorService executor)
Construct the invoker.
|
| Modifier and Type | Method and Description |
|---|---|
private T |
HotSwapping.build(ProxyFactory factory)
Create a proxy with hot swapping capabilities for specific types of the delegate given with an
ObjectReference. |
T |
HotSwapping.HotSwappingBuild.build(ProxyFactory factory)
Create a proxy with hot swapping capabilities for specific types of the delegate given with an
ObjectReference. |
| Constructor and Description |
|---|
HotSwappingInvoker(java.lang.Class<?>[] types,
ProxyFactory proxyFactory,
ObjectReference<java.lang.Object> delegateReference,
DelegationMode delegationMode)
Construct a HotSwappingInvoker.
|
| Modifier and Type | Field and Description |
|---|---|
private ProxyFactory |
MulticastingInvoker.proxyFactory |
| Modifier and Type | Method and Description |
|---|---|
private T |
Multicasting.build(ProxyFactory factory) |
T |
Multicasting.MulticastingBuild.build(ProxyFactory factory)
Generate a proxy for the specified types calling the methods on the given targets using the
StandardProxyFactory. |
private T |
Multicasting.buildWithNoTypesInput(ProxyFactory factory) |
| Constructor and Description |
|---|
MulticastingInvoker(java.lang.Class<?>[] type,
ProxyFactory proxyFactory,
java.lang.Object[] targets)
Construct a MulticastingInvoker.
|
| Modifier and Type | Field and Description |
|---|---|
private ProxyFactory |
NullInvoker.proxyFactory |
| Modifier and Type | Method and Description |
|---|---|
private T |
Null.build(ProxyFactory proxyFactory) |
T |
Null.NullBuild.build(ProxyFactory factory)
Generate a Null Object proxy for a specific type using a special
ProxyFactory. |
static boolean |
Null.isNullObject(java.lang.Object object,
ProxyFactory proxyFactory)
Determine whether an object was created by
Null.proxy(Class) using a special ProxyFactory with the builder. |
private static boolean |
Null.isNullProxyObject(java.lang.Object object,
ProxyFactory proxyFactory) |
| Constructor and Description |
|---|
NullInvoker(java.lang.Class<?> type,
ProxyFactory proxyFactory)
Construct a NullInvoker.
|
| Modifier and Type | Field and Description |
|---|---|
private ProxyFactory |
Pool.factory |
| Modifier and Type | Method and Description |
|---|---|
Pool<T> |
Pool.PoolBuild.build(ProxyFactory factory)
Build the pool using a special
ProxyFactory. |
| Constructor and Description |
|---|
Pool(java.lang.Class<T> type,
ProxyFactory proxyFactory)
Construct a populated Pool with a specific proxy factory for elements that do not have to
be resetted.
|
Pool(java.lang.Class<T> type,
Resetter<? super T> resetter,
ProxyFactory proxyFactory)
Construct a populated Pool with a specific proxy factory.
|
Pool(java.lang.Class<T> type,
Resetter<? super T> resetter,
ProxyFactory proxyFactory,
SerializationMode mode)
Construct a populated Pool with a specific proxy factory and a serialization mode.
|
PoolingInvoker(Pool<T> pool,
ProxyFactory proxyFactory,
ObjectReference<T> delegateReference,
DelegationMode delegationMode)
Construct a PoolingInvoker.
|
| Modifier and Type | Method and Description |
|---|---|
T |
Privileging.PrivilegingBuild.build(ProxyFactory factory)
Creating a privileging proxy for an object using a special
ProxyFactory. |
| Constructor and Description |
|---|
PrivilegingInvoker(ProxyFactory proxyFactory,
ObjectReference<T> delegateReference,
ActionExecutor executor)
Construct the invoker.
|