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: 9763 $$ $$Date: 2011-01-03 00:48:06 +0000 (Mon, 03 Jan 2011) $$

Constructor Summary
JDKWireProxyService()
           
JDKWireProxyService(org.fabric3.spi.classloader.ClassLoaderRegistry classLoaderRegistry, org.fabric3.spi.component.ScopeRegistry scopeRegistry)
           
 
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, org.fabric3.spi.component.ScopeContainer container, URI callbackUri, org.fabric3.spi.wire.Wire wire)
           
<T> T
createCallbackProxy(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.model.physical.InteractionType type, org.fabric3.spi.wire.Wire wire, String callbackUri)
           
<T> T
createProxy(Class<T> interfaze, org.fabric3.spi.model.physical.InteractionType type, String callbackUri, Map<Method,org.fabric3.spi.wire.InvocationChain> mappings)
           
<T> T
createStatefullCallbackProxy(Class<T> interfaze, Map<Method,org.fabric3.spi.wire.InvocationChain> mapping, org.fabric3.spi.component.ScopeContainer container)
           
<T> org.fabric3.spi.objectfactory.ObjectFactory<?>
updateCallbackObjectFactory(org.fabric3.spi.objectfactory.ObjectFactory<?> factory, Class<T> interfaze, org.fabric3.spi.component.ScopeContainer container, 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()

JDKWireProxyService

public JDKWireProxyService(org.fabric3.spi.classloader.ClassLoaderRegistry classLoaderRegistry,
                           org.fabric3.spi.component.ScopeRegistry scopeRegistry)
Method Detail

createObjectFactory

public <T> org.fabric3.spi.objectfactory.ObjectFactory<T> createObjectFactory(Class<T> interfaze,
                                                                              org.fabric3.spi.model.physical.InteractionType type,
                                                                              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,
                                                                                      org.fabric3.spi.component.ScopeContainer container,
                                                                                      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,
                                                                                      org.fabric3.spi.component.ScopeContainer container,
                                                                                      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,
                         org.fabric3.spi.model.physical.InteractionType type,
                         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

createCallbackProxy

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

createStatefullCallbackProxy

public <T> T createStatefullCallbackProxy(Class<T> interfaze,
                                          Map<Method,org.fabric3.spi.wire.InvocationChain> mapping,
                                          org.fabric3.spi.component.ScopeContainer container)
Specified by:
createStatefullCallbackProxy 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-2011 Metaform Systems.