Examples of createSelfReference()


Examples of org.apache.tuscany.sca.runtime.RuntimeComponentContext.createSelfReference()

                // No matching service found
                throw new ServiceRuntimeException("Composite service not found: " + name);
            } else {
                componentContext = ((RuntimeComponent)component).getComponentContext();
                if (serviceName != null) {
                    return componentContext.createSelfReference(businessInterface, serviceName);
                } else {
                    return componentContext.createSelfReference(businessInterface);
                }
            }
        }
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.RuntimeComponentContext.createSelfReference()

            } else {
                componentContext = ((RuntimeComponent)component).getComponentContext();
                if (serviceName != null) {
                    return componentContext.createSelfReference(businessInterface, serviceName);
                } else {
                    return componentContext.createSelfReference(businessInterface);
                }
            }
        }

        public void destroy() {
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.RuntimeComponentContext.createSelfReference()

                            ((RuntimeComponent)compositeService.getPromotedComponent()).getComponentContext();
                        serviceName = compositeService.getPromotedService().getName();
                        if (bindingName != null) {
                            serviceName = serviceName + "/" + bindingName;
                        }
                        return componentContext.createSelfReference(businessInterface, serviceName);
                    }
                    break;
                }
            }
            // No matching service found
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.RuntimeComponentContext.createSelfReference()

            // No matching service found
            throw new ServiceRuntimeException("Composite service not found: " + name);
        } else {
            componentContext = ((RuntimeComponent)component).getComponentContext();
            if (serviceName != null) {
                return componentContext.createSelfReference(businessInterface, serviceName);
            } else {
                return componentContext.createSelfReference(businessInterface);
            }
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.RuntimeComponentContext.createSelfReference()

        } else {
            componentContext = ((RuntimeComponent)component).getComponentContext();
            if (serviceName != null) {
                return componentContext.createSelfReference(businessInterface, serviceName);
            } else {
                return componentContext.createSelfReference(businessInterface);
            }
        }
    }

    public NodeConfiguration getConfiguration() {
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.RuntimeComponentContext.createSelfReference()

                        if (serviceName != null) {
                            serviceName = "$promoted$." + component.getName() + "." + serviceName;
                        }
                        componentContext =
                            ((RuntimeComponent)compositeService.getPromotedComponent()).getComponentContext();
                        return componentContext.createSelfReference(businessInterface, compositeService
                            .getPromotedService());
                    }
                    break;
                }
            }
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.RuntimeComponentContext.createSelfReference()

            // No matching service found
            throw new ServiceRuntimeException("Composite service not found: " + name);
        } else {
            componentContext = ((RuntimeComponent)component).getComponentContext();
            if (serviceName != null) {
                return componentContext.createSelfReference(businessInterface, serviceName);
            } else {
                return componentContext.createSelfReference(businessInterface);
            }
        }
    }
View Full Code Here

Examples of org.osoa.sca.ComponentContext.createSelfReference()

            componentContext = (ComponentContext)component;
        }

        ServiceReference<B> serviceReference;
        if (serviceName != null) {
            serviceReference = componentContext.createSelfReference(businessInterface, serviceName);
        } else {
            serviceReference = componentContext.createSelfReference(businessInterface);
        }
        return serviceReference;
View Full Code Here

Examples of org.osoa.sca.ComponentContext.createSelfReference()

        ServiceReference<B> serviceReference;
        if (serviceName != null) {
            serviceReference = componentContext.createSelfReference(businessInterface, serviceName);
        } else {
            serviceReference = componentContext.createSelfReference(businessInterface);
        }
        return serviceReference;

    }
View Full Code Here

Examples of org.osoa.sca.ComponentContext.createSelfReference()

            componentContext = (ComponentContext)component;
        }

        ServiceReference<B> serviceReference;
        if (serviceName != null) {
            serviceReference = componentContext.createSelfReference(businessInterface, serviceName);
        } else {
            serviceReference = componentContext.createSelfReference(businessInterface);
        }
        return serviceReference;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.