com.ca.jcs.processor
Class MetaOpBindingsProxyHandler

java.lang.Object
  extended by com.ca.jcs.processor.ConnectorProcessorProxyHandler
      extended by com.ca.jcs.processor.MetaOpBindingsProxyHandler
All Implemented Interfaces:
InvocationHandler

public class MetaOpBindingsProxyHandler
extends ConnectorProcessorProxyHandler

Helps out MetaConnector by handling dispatching of method-style and script-style operation binding calls to the registered processors, after evaluating guard conditions for relevance.


Constructor Summary
MetaOpBindingsProxyHandler(Connector connector, AttributeStyleOpProcessor attrProc)
          Handle method-style and/or script-style op processors wrapping around another connector's attribute-style op processor, for instance when creating a composite connector which uses JNDI primarily but wraps some operations with JDBC stored procedure support.
 
Method Summary
static OpBindingMethodInfo getOpBindingMethodInfo(String methodName)
           
 Object invoke(Object proxy, Method method, Object[] args)
          This is where the wrapping logic (resiliency etc) is actually implemented...
 
Methods inherited from class com.ca.jcs.processor.ConnectorProcessorProxyHandler
createAttributeStyleOpProcessorProxy, createMethodStyleOpProcessorProxy, createScriptStyleOpProcessorProxy, getConnector, getOperation, getTarget, getTargetAttributeStyleOpProcessor, getTargetMethodStyleOpProcessor, getTargetScriptStyleOpProcessor, logError, proxyToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaOpBindingsProxyHandler

public MetaOpBindingsProxyHandler(Connector connector,
                                  AttributeStyleOpProcessor attrProc)
Handle method-style and/or script-style op processors wrapping around another connector's attribute-style op processor, for instance when creating a composite connector which uses JNDI primarily but wraps some operations with JDBC stored procedure support. Note this constructor should not be called directly, but instead created by queueing its class using AttributeStyleOpProcessorChain.addClass(Class) so that it will be created when the chain is activated.

Parameters:
connector - Connector which owns attrProc.
attrProc - Attribute style processor whose method invocations should be wrapped by this proxy handler.
Method Detail

getOpBindingMethodInfo

public static OpBindingMethodInfo getOpBindingMethodInfo(String methodName)

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Description copied from class: ConnectorProcessorProxyHandler
This is where the wrapping logic (resiliency etc) is actually implemented...

Specified by:
invoke in interface InvocationHandler
Specified by:
invoke in class ConnectorProcessorProxyHandler
Throws:
Throwable


Created 2011-07-14 13:27 EST