Fabric3 JDK Proxy Service

org.fabric3.implementation.proxy.jdk
Class JDKProxyService

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

public class JDKProxyService
extends Object
implements org.fabric3.implementation.pojo.builder.ProxyService

the default implementation of a wire service that uses JDK dynamic proxies

Version:
$$Rev: 7907 $$ $$Date: 2009-11-23 16:45:42 +0100 (Mon, 23 Nov 2009) $$

Constructor Summary
JDKProxyService()
           
JDKProxyService(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<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<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<?>
updateCallbackObjectFactory(org.fabric3.spi.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

JDKProxyService

public JDKProxyService()

JDKProxyService

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

createObjectFactory

public <T> org.fabric3.spi.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.ProxyService
Throws:
org.fabric3.implementation.pojo.builder.ProxyCreationException

createCallbackObjectFactory

public <T> org.fabric3.spi.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.ProxyService
Throws:
org.fabric3.implementation.pojo.builder.ProxyCreationException

updateCallbackObjectFactory

public <T> org.fabric3.spi.ObjectFactory<?> updateCallbackObjectFactory(org.fabric3.spi.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.ProxyService
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.ProxyService
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.ProxyService
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.ProxyService

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.ProxyService
Throws:
IllegalArgumentException

Fabric3 JDK Proxy Service

Copyright © 2007-2010 Metaform Systems.