Examples of NoSuchServiceException


Examples of net.buffalo.service.NoSuchServiceException

    BuffaloServiceConfigurer config = (BuffaloServiceConfigurer) (appCtx.getBean(serviceName));
   
    Object instance = config.getServices().get(serviceId);
   
    if (instance == null) {
      throw new NoSuchServiceException("In configBean '" + serviceName +
          "', no service named '" + serviceId + "' configed.");
    }
   
    return instance;
   
View Full Code Here

Examples of net.buffalo.service.NoSuchServiceException

    } catch (IllegalAccessException e) {
      e.printStackTrace();
      throw new ServiceCreationFailException(e);
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
      throw new NoSuchServiceException(e);
    }
   
    return instance;
  }
View Full Code Here

Examples of org.araneaframework.core.NoSuchServiceException

      finally {
        output.popAttribute(getServiceKey());
      }
    }
    else {
      throw new NoSuchServiceException("Non-existent service " + currentServiceId);
    }
  }
View Full Code Here

Examples of org.oasisopen.sca.NoSuchServiceException

    public <T> T getService(Class<T> interfaze, String serviceURI) throws NoSuchServiceException {

        List<Endpoint> endpoints = endpointRegistry.findEndpoint(serviceURI);
        if (endpoints.size() < 1) {
            throw new NoSuchServiceException(serviceURI);
        }

        String serviceName = null;
        if (serviceURI.contains("/")) {
            int i = serviceURI.indexOf("/");
View Full Code Here

Examples of org.oasisopen.sca.NoSuchServiceException

        }
       
        // assume that if a local node with the looked for domain name is found then that will 
        // know about all services in the domain so if the service isn't found then it doesn't exist
        if (foundDomain) {
            throw new NoSuchServiceException(serviceName);
        }
       
        InvocationHandler handler = new SCAClientHandler(getDomainURI().toString(), serviceName, serviceInterface);
        return (T)Proxy.newProxyInstance(serviceInterface.getClassLoader(), new Class[]{serviceInterface}, handler);
    }
View Full Code Here

Examples of org.oasisopen.sca.NoSuchServiceException

       
        // The service is a component in a local runtime
        if (!remoteClient) {
            List<Endpoint> endpoints = domainRegistry.findEndpoint(serviceURI);
            if (endpoints.size() < 1) {
                throw new NoSuchServiceException(serviceURI);
            }
            Endpoint ep = endpoints.get(0);
            if (((RuntimeComponent)ep.getComponent()).getComponentContext() != null) {
                return ((RuntimeComponent)ep.getComponent()).getServiceReference(serviceInterface, serviceName).getService();
            }
View Full Code Here

Examples of org.oasisopen.sca.NoSuchServiceException

            CompositeContext compositeContext = new CompositeContext(extensionsRegistry, domainRegistry, null, domainURI, null, null);

            List<Endpoint> eps = domainRegistry.findEndpoint(serviceName);
            if (eps == null || eps.size() < 1) {
                throw new NoSuchServiceException(serviceName);
            }
            Endpoint endpoint = eps.get(0); // TODO: what should be done with multiple endpoints?
            
            if (serviceInterface == null) {
                try {
View Full Code Here

Examples of org.oasisopen.sca.NoSuchServiceException

            CompositeContext compositeContext =
                new CompositeContext(extensionsRegistry, endpointRegistry, null, domainURI.toString(), client, nodeFactory.getDeployer().getSystemDefinitions());

            List<Endpoint> eps = endpointRegistry.findEndpoint(serviceName);
            if (eps == null || eps.size() < 1) {
                throw new NoSuchServiceException(serviceName);
            }
            Endpoint endpoint = eps.get(0); // TODO: what should be done with multiple endpoints?
          
            RuntimeEndpointReference epr;
            try {
View Full Code Here

Examples of org.oasisopen.sca.NoSuchServiceException

        }
       
        // assume that if a local node with the looked for domain name is found then that will 
        // know about all services in the domain so if the service isn't found then it doesn't exist
        if (foundDomain) {
            throw new NoSuchServiceException(serviceName);
        }
       
        InvocationHandler handler = new SCAClientHandler(getDomainURI().toString(), serviceName, serviceInterface);
        return (T)Proxy.newProxyInstance(serviceInterface.getClassLoader(), new Class[]{serviceInterface}, handler);
    }
View Full Code Here

Examples of org.oasisopen.sca.NoSuchServiceException

    }

    public String call() throws Exception {
        RuntimeEndpoint endpoint = EndpointStash.getEndpoint(serviceURI);
        if (endpoint == null) {
            throw new NoSuchServiceException(serviceURI);
        }
        Operation operation = getRequestOperation(endpoint);
        DOMHelper domHelper = DOMHelper.getInstance(endpoint.getCompositeContext().getExtensionPointRegistry());
        Object[] args = getRequestArgs(domHelper);
        String responseXML;
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.