public class EJBBindingActivator implements BindingActivator<EJBBinding> {
public InvokerFactory createInvokerFactory(RuntimeComponent rc, RuntimeComponentReference rcr, final Binding b, final EJBBinding binding) {
// TODO: assumes a Java interface, need to support tuscany generic Interface
final Class si = ((JavaInterface)rcr.getInterfaceContract().getInterface()).getJavaClass();
return new InvokerFactory() {
public Invoker createInvoker(Operation operation) {
return new EJBTargetInvoker((EJBBinding)binding, si, operation);
}
};
}