Fabric3 JDK Proxy Extension

org.fabric3.implementation.proxy.jdk
Class JDKWireProxyService

java.lang.Object
  extended by org.fabric3.implementation.proxy.jdk.JDKWireProxyService
All Implemented Interfaces:
org.fabric3.implementation.pojo.builder.WireProxyService

public class JDKWireProxyService
extends Object
implements org.fabric3.implementation.pojo.builder.WireProxyService

The default WireProxyService implementation that uses JDK dynamic proxies.

Version:
$$Rev: 11083 $$ $$Date: 2012-06-21 10:38:50 +0000 (Thu, 21 Jun 2012) $$

Constructor Summary
JDKWireProxyService(org.fabric3.spi.classloader.ClassLoaderRegistry classLoaderRegistry)
           
 
Method Summary
<B,R extends org.oasisopen.sca.ServiceReference<B>>
R
cast(B target)
           
<T> org.fabric3.spi.objectfactory.ObjectFactory<T>
createCallbackObjectFactory(Class<T> interfaze, boolean multiThreaded, URI callbackUri, org.fabric3.spi.wire.Wire wire)
           
<T> T
createCallbackProxy(Class<T> interfaze, Map<Method,org.fabric3.spi.wire.InvocationChain> mapping)
           
<T> T
createMultiThreadedCallbackProxy(Class<T> interfaze, Map<String,Map<Method,org.fabric3.spi.wire.InvocationChain>> mappings)
           
<T> org.fabric3.spi.objectfactory.ObjectFactory<T>
createObjectFactory(Class<T> interfaze, org.fabric3.spi.wire.Wire wire, String callbackUri)
           
<T> T
createProxy(Class<T> interfaze, String callbackUri, Map<Method,org.fabric3.spi.wire.InvocationChain> mappings)
           
<T> org.fabric3.spi.objectfactory.ObjectFactory<?>
updateCallbackObjectFactory(org.fabric3.spi.objectfactory.ObjectFactory<?> factory, Class<T> interfaze, boolean multiThreaded, URI callbackUri, org.fabric3.spi.wire.Wire wire)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDKWireProxyService

public JDKWireProxyService(org.fabric3.spi.classloader.ClassLoaderRegistry classLoaderRegistry)
Method Detail

createObjectFactory

public <T> org.fabric3.spi.objectfactory.ObjectFactory<T> createObjectFactory(Class<T> interfaze,
                                                                              org.fabric3.spi.wire.Wire wire,
                                                                              String callbackUri)
                                                                   throws org.fabric3.implementation.pojo.builder.ProxyCreationException
Specified by:
createObjectFactory in interface org.fabric3.implementation.pojo.builder.WireProxyService
Throws:
org.fabric3.implementation.pojo.builder.ProxyCreationException

createCallbackObjectFactory

public <T> org.fabric3.spi.objectfactory.ObjectFactory<T> createCallbackObjectFactory(Class<T> interfaze,
                                                                                      boolean multiThreaded,
                                                                                      URI callbackUri,
                                                                                      org.fabric3.spi.wire.Wire wire)
                                                                           throws org.fabric3.implementation.pojo.builder.ProxyCreationException
Specified by:
createCallbackObjectFactory in interface org.fabric3.implementation.pojo.builder.WireProxyService
Throws:
org.fabric3.implementation.pojo.builder.ProxyCreationException

updateCallbackObjectFactory

public <T> org.fabric3.spi.objectfactory.ObjectFactory<?> updateCallbackObjectFactory(org.fabric3.spi.objectfactory.ObjectFactory<?> factory,
                                                                                      Class<T> interfaze,
                                                                                      boolean multiThreaded,
                                                                                      URI callbackUri,
                                                                                      org.fabric3.spi.wire.Wire wire)
                                                                           throws org.fabric3.implementation.pojo.builder.ProxyCreationException
Specified by:
updateCallbackObjectFactory in interface org.fabric3.implementation.pojo.builder.WireProxyService
Throws:
org.fabric3.implementation.pojo.builder.ProxyCreationException

createProxy

public <T> T createProxy(Class<T> interfaze,
                         String callbackUri,
                         Map<Method,org.fabric3.spi.wire.InvocationChain> mappings)
              throws org.fabric3.implementation.pojo.builder.ProxyCreationException
Specified by:
createProxy in interface org.fabric3.implementation.pojo.builder.WireProxyService
Throws:
org.fabric3.implementation.pojo.builder.ProxyCreationException

createMultiThreadedCallbackProxy

public <T> T createMultiThreadedCallbackProxy(Class<T> interfaze,
                                              Map<String,Map<Method,org.fabric3.spi.wire.InvocationChain>> mappings)
                                   throws org.fabric3.implementation.pojo.builder.ProxyCreationException
Specified by:
createMultiThreadedCallbackProxy in interface org.fabric3.implementation.pojo.builder.WireProxyService
Throws:
org.fabric3.implementation.pojo.builder.ProxyCreationException

createCallbackProxy

public <T> T createCallbackProxy(Class<T> interfaze,
                                 Map<Method,org.fabric3.spi.wire.InvocationChain> mapping)
Specified by:
createCallbackProxy in interface org.fabric3.implementation.pojo.builder.WireProxyService

cast

public <B,R extends org.oasisopen.sca.ServiceReference<B>> R cast(B target)
                                                     throws IllegalArgumentException
Specified by:
cast in interface org.fabric3.implementation.pojo.builder.WireProxyService
Throws:
IllegalArgumentException

Fabric3 JDK Proxy Extension

Copyright © 2007-2012 Metaform Systems.