Package org.apache.tuscany.sca.extension.helper

Examples of org.apache.tuscany.sca.extension.helper.BindingActivator


            if (b instanceof PojoBinding) {
                realBinding = ((PojoBinding)b).getUserBinding();
            } else {
                realBinding = b;
            }
            final BindingActivator bindingActivator = bindingActivatorMap.get(realBinding.getClass());
            return new ReferenceBindingProvider() {
                List<InvokerProxy> invokers = new ArrayList<InvokerProxy>();
                private InvokerFactory factory;

                public Invoker createInvoker(Operation operation) {
                    InvokerProxy invoker = new InvokerProxy(factory, operation);
                    invokers.add(invoker);
                    return invoker;
                }
               
                public boolean supportsOneWayInvocation() {
                    return false;
                }

                public InterfaceContract getBindingInterfaceContract() {
                    return null;
                }

                public void start() {
                    if (b instanceof PojoBinding) {
                        factory = bindingActivator.createInvokerFactory(rc, rcr, b, ((PojoBinding)b).getUserBinding());
                    } else {
                        factory = bindingActivator.createInvokerFactory(rc, rcr, b, b);
                    }
                    if ( (factory != null) &&  (factory instanceof ComponentLifecycle)) {
                        ((ComponentLifecycle)factory).start();
                    }
//                    for (InvokerProxy invoker : invokers) {
View Full Code Here


            if (b instanceof PojoBinding) {
                realBinding = ((PojoBinding)b).getUserBinding();
            } else {
                realBinding = b;
            }
            final BindingActivator bindingActivator = bindingActivatorMap.get(realBinding.getClass());
            return new ServiceBindingProvider() {
                ComponentLifecycle listener = bindingActivator.createService(rc, rcs, b, realBinding);

                public InterfaceContract getBindingInterfaceContract() {
                    return null;
                }
               
View Full Code Here

            if (b instanceof PojoBinding) {
                realBinding = ((PojoBinding)b).getUserBinding();
            } else {
                realBinding = b;
            }
            final BindingActivator bindingActivator = bindingActivatorMap.get(realBinding.getClass());
            return new ReferenceBindingProvider() {
                List<InvokerProxy> invokers = new ArrayList<InvokerProxy>();
                private InvokerFactory factory;

                public Invoker createInvoker(Operation operation) {
                    InvokerProxy invoker = new InvokerProxy(factory, operation);
                    invokers.add(invoker);
                    return invoker;
                }
               
                public boolean supportsOneWayInvocation() {
                    return false;
                }

                public InterfaceContract getBindingInterfaceContract() {
                    return null;
                }

                public void start() {
                    if (b instanceof PojoBinding) {
                        factory = bindingActivator.createInvokerFactory(rc, rcr, b, ((PojoBinding)b).getUserBinding());
                    } else {
                        factory = bindingActivator.createInvokerFactory(rc, rcr, b, b);
                    }
                    if ( (factory != null) &&  (factory instanceof ComponentLifecycle)) {
                        ((ComponentLifecycle)factory).start();
                    }
//                    for (InvokerProxy invoker : invokers) {
View Full Code Here

            if (b instanceof PojoBinding) {
                realBinding = ((PojoBinding)b).getUserBinding();
            } else {
                realBinding = b;
            }
            final BindingActivator bindingActivator = bindingActivatorMap.get(realBinding.getClass());
            return new ServiceBindingProvider() {
                ComponentLifecycle listener = bindingActivator.createService(rc, rcs, b, realBinding);

                public InterfaceContract getBindingInterfaceContract() {
                    return null;
                }
               
View Full Code Here

            if (b instanceof PojoBinding) {
                realBinding = ((PojoBinding)b).getUserBinding();
            } else {
                realBinding = b;
            }
            final BindingActivator bindingActivator = bindingActivatorMap.get(realBinding.getClass());
            return new ReferenceBindingProvider() {
                List<InvokerProxy> invokers = new ArrayList<InvokerProxy>();
                private InvokerFactory factory;

                public Invoker createInvoker(Operation operation) {
                    InvokerProxy invoker = new InvokerProxy(factory, operation);
                    invokers.add(invoker);
                    return invoker;
                }
               
                public boolean supportsOneWayInvocation() {
                    return false;
                }

                public InterfaceContract getBindingInterfaceContract() {
                    return null;
                }

                public void start() {
                    if (b instanceof PojoBinding) {
                        factory = bindingActivator.createInvokerFactory(rc, rcr, b, ((PojoBinding)b).getUserBinding());
                    } else {
                        factory = bindingActivator.createInvokerFactory(rc, rcr, b, b);
                    }
                    if ( (factory != null) &&  (factory instanceof ComponentLifecycle)) {
                        ((ComponentLifecycle)factory).start();
                    }
//                    for (InvokerProxy invoker : invokers) {
View Full Code Here

            if (b instanceof PojoBinding) {
                realBinding = ((PojoBinding)b).getUserBinding();
            } else {
                realBinding = b;
            }
            final BindingActivator bindingActivator = bindingActivatorMap.get(realBinding.getClass());
            return new ServiceBindingProvider() {
                ComponentLifecycle listener = bindingActivator.createService(rc, rcs, b, realBinding);

                public InterfaceContract getBindingInterfaceContract() {
                    return null;
                }
               
View Full Code Here

            if (b instanceof PojoBinding) {
                realBinding = ((PojoBinding)b).getUserBinding();
            } else {
                realBinding = b;
            }
            final BindingActivator bindingActivator = bindingActivatorMap.get(realBinding.getClass());
            return new ReferenceBindingProvider() {
                List<InvokerProxy> invokers = new ArrayList<InvokerProxy>();
                private InvokerFactory factory;

                public Invoker createInvoker(Operation operation, boolean isCallback) {
                    InvokerProxy invoker = new InvokerProxy(factory, operation);
                    invokers.add(invoker);
                    return invoker;
                }

                public InterfaceContract getBindingInterfaceContract() {
                    return null;
                }

                public void start() {
                    if (b instanceof PojoBinding) {
                        factory = bindingActivator.createInvokerFactory(rc, rcr, b, ((PojoBinding)b).getUserBinding());
                    } else {
                        factory = bindingActivator.createInvokerFactory(rc, rcr, b, b);
                    }
                    if (factory instanceof ComponentLifecycle) {
                        ((ComponentLifecycle)factory).start();
                    }
//                    for (InvokerProxy invoker : invokers) {
View Full Code Here

            if (b instanceof PojoBinding) {
                realBinding = ((PojoBinding)b).getUserBinding();
            } else {
                realBinding = b;
            }
            final BindingActivator bindingActivator = bindingActivatorMap.get(realBinding.getClass());
            return new ServiceBindingProvider() {
                ComponentLifecycle listener = bindingActivator.createService(rc, rcs, b, realBinding);

                public InterfaceContract getBindingInterfaceContract() {
                    return null;
                }
View Full Code Here

            if (b instanceof PojoBinding) {
                realBinding = ((PojoBinding)b).getUserBinding();
            } else {
                realBinding = b;
            }
            final BindingActivator bindingActivator = bindingActivatorMap.get(realBinding.getClass());
            return new ReferenceBindingProvider() {
                List<InvokerProxy> invokers = new ArrayList<InvokerProxy>();
                private InvokerFactory factory;

                public Invoker createInvoker(Operation operation) {
                    InvokerProxy invoker = new InvokerProxy(factory, operation);
                    invokers.add(invoker);
                    return invoker;
                }
               
                public boolean supportsOneWayInvocation() {
                    return false;
                }

                public InterfaceContract getBindingInterfaceContract() {
                    return null;
                }

                public void start() {
                    if (b instanceof PojoBinding) {
                        factory = bindingActivator.createInvokerFactory(rc, rcr, b, ((PojoBinding)b).getUserBinding());
                    } else {
                        factory = bindingActivator.createInvokerFactory(rc, rcr, b, b);
                    }
                    if ( (factory != null) &&  (factory instanceof ComponentLifecycle)) {
                        ((ComponentLifecycle)factory).start();
                    }
//                    for (InvokerProxy invoker : invokers) {
View Full Code Here

            if (b instanceof PojoBinding) {
                realBinding = ((PojoBinding)b).getUserBinding();
            } else {
                realBinding = b;
            }
            final BindingActivator bindingActivator = bindingActivatorMap.get(realBinding.getClass());
            return new ServiceBindingProvider() {
                ComponentLifecycle listener = bindingActivator.createService(rc, rcs, b, realBinding);

                public InterfaceContract getBindingInterfaceContract() {
                    return null;
                }
               
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.extension.helper.BindingActivator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.