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 |
---|---|
class |
CglibProxyFactory
A
ProxyFactory based on CGLIB. |
class |
StandardProxyFactory
A
ProxyFactory based on a JDK. |
Modifier and Type | Method and Description |
---|---|
static void |
ReflectionUtils.addIfClassProxyingSupportedAndNotObject(Class<?> type,
Set<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 | 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 |
---|---|
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,
Class<?>[] types,
ObjectReference<Object>[] delegateReferences)
Construct a DispatchingInvoker.
|
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(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(Class<?>[] types,
ProxyFactory proxyFactory,
T[] delegates,
Class<? extends Throwable> exceptionClass)
Construct a FailoverInvoker.
|
Modifier and Type | Method and Description |
---|---|
T |
Future.FutureBuild.build(ProxyFactory factory)
Create a proxy with asynchronously called methods.
|
Constructor and Description |
---|
FutureInvoker(Object target,
ProxyFactory proxyFactory,
ExecutorService executor)
Construct the invoker.
|
Modifier and Type | Method and Description |
---|---|
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(Class<?>[] types,
ProxyFactory proxyFactory,
ObjectReference<Object> delegateReference,
DelegationMode delegationMode)
Construct a HotSwappingInvoker.
|
Modifier and Type | Method and Description |
---|---|
T |
Multicasting.MulticastingBuild.build(ProxyFactory factory)
Generate a proxy for the specified types calling the methods on the given targets using the
StandardProxyFactory . |
Constructor and Description |
---|
MulticastingInvoker(Class<?>[] type,
ProxyFactory proxyFactory,
Object[] targets)
Construct a MulticastingInvoker.
|
Modifier and Type | Method and Description |
---|---|
T |
Null.NullBuild.build(ProxyFactory factory)
Generate a Null Object proxy for a specific type using a special
ProxyFactory . |
static boolean |
Null.isNullObject(Object object,
ProxyFactory proxyFactory)
Determine whether an object was created by
Null.proxy(Class) using a special ProxyFactory with the builder. |
Constructor and Description |
---|
NullInvoker(Class<?> type,
ProxyFactory proxyFactory)
Construct a NullInvoker.
|
Modifier and Type | Method and Description |
---|---|
Pool<T> |
Pool.PoolBuild.build(ProxyFactory factory)
Build the pool using a special
ProxyFactory . |
Constructor and Description |
---|
Pool(Class<T> type,
ProxyFactory proxyFactory)
Construct a populated Pool with a specific proxy factory for elements that do not have to
be resetted.
|
Pool(Class<T> type,
Resetter<? super T> resetter,
ProxyFactory proxyFactory)
Construct a populated Pool with a specific proxy factory.
|
Pool(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.
|
Copyright © 2005–2023 Codehaus. All rights reserved.