org.fabric3.implementation.proxy.jdk
Class JDKInvocationHandler<B>
java.lang.Object
org.fabric3.implementation.proxy.jdk.JDKInvocationHandler<B>
- All Implemented Interfaces:
- Serializable, InvocationHandler, org.fabric3.spi.component.ConversationExpirationCallback, org.oasisopen.sca.ServiceReference<B>
public final class JDKInvocationHandler<B>
- extends Object
- implements org.fabric3.spi.component.ConversationExpirationCallback, InvocationHandler, org.oasisopen.sca.ServiceReference<B>
Dispatches from a proxy to a wire.
- Version:
- $Rev: 9763 $ $Date: 2011-01-03 00:48:06 +0000 (Mon, 03 Jan 2011) $
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDKInvocationHandler
public JDKInvocationHandler(Class<B> interfaze,
String callbackUri,
Map<Method,org.fabric3.spi.wire.InvocationChain> mapping)
- Constructor.
- Parameters:
interfaze - the proxy interfacecallbackUri - the callback uri or null if the wire is unidirectionalmapping - the method to invocation chain mappings for the wire
JDKInvocationHandler
public JDKInvocationHandler(Class<B> interfaze,
org.fabric3.spi.model.physical.InteractionType type,
String callbackUri,
Map<Method,org.fabric3.spi.wire.InvocationChain> mapping,
org.fabric3.spi.component.ScopeContainer scopeContainer)
- Constructor.
- Parameters:
interfaze - the proxy interfacetype - the interaction style for the wirecallbackUri - the callback uri or null if the wire is unidirectionalmapping - the method to invocation chain mappings for the wirescopeContainer - the conversational scope container
expire
public void expire(org.fabric3.spi.invocation.F3Conversation conversation)
- Specified by:
expire in interface org.fabric3.spi.component.ConversationExpirationCallback
getService
public B getService()
- Specified by:
getService in interface org.oasisopen.sca.ServiceReference<B>
getBusinessInterface
public Class<B> getBusinessInterface()
- Specified by:
getBusinessInterface in interface org.oasisopen.sca.ServiceReference<B>
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke in interface InvocationHandler
- Throws:
Throwable
getServiceReference
public org.oasisopen.sca.ServiceReference<B> getServiceReference()
Copyright © 2007-2011 Metaform Systems.