Package org.apache.tuscany.spi.component

Examples of org.apache.tuscany.spi.component.ComponentNotFoundException


    }

    public InboundWire getInboundWire(String serviceName) {
        SCAObject object = children.get(serviceName);
        if (!(object instanceof Service)) {
            throw new ComponentNotFoundException(serviceName);
        }
        return ((Service) object).getInboundWire();
    }
View Full Code Here


    }

    public Service getService(String name) {
        SCAObject ctx = children.get(name);
        if (ctx == null) {
            ComponentNotFoundException e = new ComponentNotFoundException("Service not found");
            e.setIdentifier(name);
            e.addContextName(getName());
            throw e;
        } else if (!(ctx instanceof Service)) {
            ComponentNotFoundException e = new ComponentNotFoundException("SCAObject not a service");
            e.setIdentifier(name);
            e.addContextName(getName());
            throw e;
        }
        return (Service) ctx;
    }
View Full Code Here

    }

    public Service getSystemService(String name) {
        SCAObject ctx = systemChildren.get(name);
        if (ctx == null) {
            ComponentNotFoundException e = new ComponentNotFoundException("Service not found");
            e.setIdentifier(name);
            e.addContextName(getName());
            throw e;
        } else if (!(ctx instanceof Service)) {
            ComponentNotFoundException e = new ComponentNotFoundException("SCAObject not a service");
            e.setIdentifier(name);
            e.addContextName(getName());
            throw e;
        }
        return (Service) ctx;
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.spi.component.ComponentNotFoundException

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.