Package org.apache.tuscany.spi.component

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


    }

    public void register(SCAObject child) {
        if (child.isSystem()) {
            if (systemChildren.get(child.getName()) != null) {
                DuplicateNameException e =
                    new DuplicateNameException("A system child is already registered with the name");
                e.setIdentifier(child.getName());
                e.addContextName(getName());
                throw e;
            }
            systemChildren.put(child.getName(), child);
        } else {
            if (children.get(child.getName()) != null) {
                DuplicateNameException e = new DuplicateNameException("A child is already registered with the name");
                e.setIdentifier(child.getName());
                e.addContextName(getName());
                throw e;
            }
            children.put(child.getName(), child);
        }
        if (child instanceof Service) {
View Full Code Here

TOP

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

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.