|
|||||||||
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.CglibProxyFactory
public class CglibProxyFactory
The implementation of a wire service that uses cglib dynamic proxies
Constructor Summary | |
---|---|
CglibProxyFactory(MessageFactory messageFactory,
InterfaceContractMapper mapper)
|
Method Summary | ||
---|---|---|
|
cast(B target)
Cast a proxy to a CallableReference. |
|
|
createCallbackProxy(CallbackReferenceImpl<T> callbackReference)
create the callback proxy with cglib. |
|
|
createCallbackProxy(java.lang.Class<T> interfaze,
java.util.List<RuntimeWire> wires)
create the callback proxy with cglib. |
|
|
createProxy(org.osoa.sca.CallableReference<T> callableReference)
create the proxy with cglib. |
|
|
createProxy(java.lang.Class<T> interfaze,
RuntimeWire wire)
Creates a Java proxy for the given wire |
|
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 |
Constructor Detail |
---|
public CglibProxyFactory(MessageFactory messageFactory, InterfaceContractMapper mapper)
Method Detail |
---|
public <T> T createProxy(java.lang.Class<T> interfaze, RuntimeWire wire) throws ProxyCreationException
ProxyFactory
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
createProxy
in interface ProxyFactory
callableReference
- The CallableReference
ProxyCreationException
public <T> T createCallbackProxy(java.lang.Class<T> interfaze, java.util.List<RuntimeWire> wires) throws ProxyCreationException
createCallbackProxy
in interface ProxyFactory
interfaze
- the interface the proxy should implement
ProxyCreationException
public <T> T createCallbackProxy(CallbackReferenceImpl<T> callbackReference) throws ProxyCreationException
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 |