org.identityconnectors.framework.impl.api.local.operations
Class ConnectorAPIOperationRunnerProxy

java.lang.Object
  extended by org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunnerProxy
All Implemented Interfaces:
InvocationHandler

public class ConnectorAPIOperationRunnerProxy
extends Object
implements InvocationHandler

Proxy for APIOperationRunner that takes care of setting up underlying connector and creating the implementation of APIOperationRunner. The implementation of APIOperationRunner gets created whenever the actual method is invoked.


Constructor Summary
ConnectorAPIOperationRunnerProxy(ConnectorOperationalContext context, Constructor<? extends APIOperationRunner> runnerImplConstructor)
          Create an APIOperationRunnerProxy
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorAPIOperationRunnerProxy

public ConnectorAPIOperationRunnerProxy(ConnectorOperationalContext context,
                                        Constructor<? extends APIOperationRunner> runnerImplConstructor)
Create an APIOperationRunnerProxy

Parameters:
context - The operational context
runnerImplConstructor - The implementation constructor. Implementation must define a two-argument constructor(OperationalContext,Connector)
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2011. All Rights Reserved.