|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.sca.core.invocation.JDKProxyFactory
public class JDKProxyFactory
the default implementation of a wire service that uses JDK dynamic proxies
Field Summary | |
---|---|
protected InterfaceContractMapper |
contractMapper
|
Constructor Summary | |
---|---|
JDKProxyFactory(MessageFactory messageFactory,
InterfaceContractMapper mapper)
|
Method Summary | ||
---|---|---|
|
cast(B target)
Cast a proxy to a CallableReference. |
|
|
createCallbackProxy(CallbackReferenceImpl<T> callbackReference)
Creates a Java proxy for the given callback reference |
|
|
createCallbackProxy(java.lang.Class<T> interfaze,
java.util.List<RuntimeWire> wires)
Creates a Java proxy for the service contract callback |
|
|
createProxy(org.osoa.sca.CallableReference<T> callableReference)
Creates a Java proxy for the given CallableReference |
|
|
createProxy(java.lang.Class<T> interfaze,
RuntimeWire wire)
The original createProxy method assumes that the proxy doesn't want to share conversation state so sets the conversation object to null |
|
boolean |
isProxyClass(java.lang.Class<?> clazz)
Test if a given class is a generated proxy class by this factory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected InterfaceContractMapper contractMapper
Constructor Detail |
---|
public JDKProxyFactory(MessageFactory messageFactory, InterfaceContractMapper mapper)
Method Detail |
---|
public <T> T createProxy(java.lang.Class<T> interfaze, RuntimeWire wire) throws ProxyCreationException
createProxy
in interface ProxyFactory
interfaze
- the interface the proxy implementswire
- the wire to proxy
ProxyCreationException
public <T> T createProxy(org.osoa.sca.CallableReference<T> callableReference) throws ProxyCreationException
ProxyFactory
createProxy
in interface ProxyFactory
callableReference
- The CallableReference
ProxyCreationException
public <T> T createCallbackProxy(java.lang.Class<T> interfaze, java.util.List<RuntimeWire> wires) throws ProxyCreationException
ProxyFactory
createCallbackProxy
in interface ProxyFactory
interfaze
- the interface the proxy should implement
ProxyCreationException
public <T> T createCallbackProxy(CallbackReferenceImpl<T> callbackReference) throws ProxyCreationException
ProxyFactory
createCallbackProxy
in interface ProxyFactory
ProxyCreationException
public <B,R extends org.osoa.sca.CallableReference<B>> R cast(B target) throws java.lang.IllegalArgumentException
ProxyFactory
cast
in interface ProxyFactory
target
- a proxy generated by this implementation
java.lang.IllegalArgumentException
- if the object supplied is not a proxypublic boolean isProxyClass(java.lang.Class<?> clazz)
ProxyFactory
isProxyClass
in interface ProxyFactory
clazz
- A java class or interface
ProxyFactory.isProxyClass(java.lang.Class)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |