public class HotSwapping
extends java.lang.Object
Swappable
, that is used for the hot swap operation.com.thoughtworks.proxy.toys.hotswap
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
object(java.lang.Class[] types,
ProxyFactory proxyFactory,
java.lang.Object delegate,
boolean staticTyping)
Deprecated.
since 0.2, use
object(Class[], ProxyFactory, Object, int) |
static java.lang.Object |
object(java.lang.Class[] types,
ProxyFactory proxyFactory,
java.lang.Object delegate,
int delegationMode)
Create a proxy with hot swapping capabilities for specifiy types of the delegate.
|
static java.lang.Object |
object(java.lang.Class[] types,
ProxyFactory proxyFactory,
ObjectReference objectReference,
boolean staticTyping)
Deprecated.
since 0.2, use
object(Class[], ProxyFactory, ObjectReference, int) |
static java.lang.Object |
object(java.lang.Class[] types,
ProxyFactory proxyFactory,
ObjectReference objectReference,
int delegationMode)
Create a proxy with hot swapping capabilities for specifiy types of the delegate given with an
ObjectReference . |
static java.lang.Object |
object(java.lang.Class type,
ProxyFactory proxyFactory,
java.lang.Object delegate)
Create a proxy with hot swapping capability for a specific type and API compatible delegates.
|
public static java.lang.Object object(java.lang.Class type, ProxyFactory proxyFactory, java.lang.Object delegate)
type
- the type of the proxyproxyFactory
- the ProxyFactory
to usedelegate
- the delegated objectSwappable
public static java.lang.Object object(java.lang.Class[] types, ProxyFactory proxyFactory, java.lang.Object delegate, int delegationMode)
Delegating.MODE_DIRECT
, for
Delegating.MODE_SIGNATURE
it must only have signature compatible methods with same names.types
- the types of the proxyproxyFactory
- the ProxyFactory
to usedelegate
- the delegated objectdelegationMode
- one of the delegation modes of Delegating
Swappable
public static java.lang.Object object(java.lang.Class[] types, ProxyFactory proxyFactory, java.lang.Object delegate, boolean staticTyping)
object(Class[], ProxyFactory, Object, int)
types
- the types of the proxyproxyFactory
- the ProxyFactory
to usedelegate
- the delegated objectstaticTyping
- STATIC_TYPING
or
DYNAMIC_TYPING
Swappable
public static java.lang.Object object(java.lang.Class[] types, ProxyFactory proxyFactory, ObjectReference objectReference, int delegationMode)
ObjectReference
. The delegate must implement the given types, if the invoker's delegation mode is
Delegating.MODE_DIRECT
, for Delegating.MODE_SIGNATURE
it must only have signature compatible
methods with same names.types
- the types of the proxyproxyFactory
- the ProxyFactory
to useobjectReference
- the ObjectReference
with the delegatedelegationMode
- one of the delegation modes of Delegating
Swappable
public static java.lang.Object object(java.lang.Class[] types, ProxyFactory proxyFactory, ObjectReference objectReference, boolean staticTyping)
object(Class[], ProxyFactory, ObjectReference, int)
ObjectReference
. The delegate must implement the given types, if the invoker is in static typing mode,
otherwise it must only have signature compatible methods.types
- the types of the proxyproxyFactory
- the ProxyFactory
to useobjectReference
- the ObjectReference
with the delegatestaticTyping
- STATIC_TYPING
or
DYNAMIC_TYPING
Swappable