|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.proxy.toys.hotswap.HotSwapping
public class HotSwapping
Factory for proxy instances that allow to exchange the delegated instance. Every created proxy will implement
Swappable
, that is used for the hot swap operation.
com.thoughtworks.proxy.toys.hotswap
Method Summary | |
---|---|
static Object |
object(Class[] types,
ProxyFactory proxyFactory,
Object delegate,
boolean staticTyping)
Deprecated. since 0.2, use object(Class[], ProxyFactory, Object, int) |
static Object |
object(Class[] types,
ProxyFactory proxyFactory,
Object delegate,
int delegationMode)
Create a proxy with hot swapping capabilities for specifiy types of the delegate. |
static Object |
object(Class[] types,
ProxyFactory proxyFactory,
ObjectReference objectReference,
boolean staticTyping)
Deprecated. since 0.2, use object(Class[], ProxyFactory, ObjectReference, int) |
static Object |
object(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 Object |
object(Class type,
ProxyFactory proxyFactory,
Object delegate)
Create a proxy with hot swapping capability for a specific type and API compatible delegates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Object object(Class type, ProxyFactory proxyFactory, Object delegate)
type
- the type of the proxyproxyFactory
- the ProxyFactory
to usedelegate
- the delegated object
Swappable
public static Object object(Class[] types, ProxyFactory proxyFactory, 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 Object object(Class[] types, ProxyFactory proxyFactory, 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 Object object(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 Object object(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
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |