Package javax.enterprise.deploy.spi.exceptions

Examples of javax.enterprise.deploy.spi.exceptions.ConfigurationException


                RemoteRefDConfigBean ejbRef = ejbRefs[i];
                if (ejbRef.getRefName().equals(name)) {
                    return ejbRef;
                }
            }
            throw new ConfigurationException("no such ejb-ref-name" + name);
        } else if (xpath.equals(xpaths[1])) {
            String name = ddBean.getText(namePaths[1])[0];
            for (int i = 0; i < ejbLocalRefs.length; i++) {
                LocalRefDConfigBean ejbLocalRef = ejbLocalRefs[i];
                if (ejbLocalRef.getRefName().equals(name)) {
                    return ejbLocalRef;
                }
            }
            throw new ConfigurationException("no such ejb-ref-name" + name);
        } else if (xpath.equals(xpaths[2])) {
            String name = ddBean.getText(namePaths[2])[0];
            for (int i = 0; i < resourceEnvRefs.length; i++) {
                LocalRefDConfigBean resourceEnvRef = resourceEnvRefs[i];
                if (resourceEnvRef.getRefName().equals(name)) {
                    return resourceEnvRef;
                }
            }
            throw new ConfigurationException("no such ejb-ref-name" + name);
        } else if (xpath.equals(xpaths[3])) {
            String name = ddBean.getText(namePaths[3])[0];
            for (int i = 0; i < resourceRefs.length; i++) {
                LocalRefDConfigBean resourceRef = resourceRefs[i];
                if (resourceRef.getRefName().equals(name)) {
                    return resourceRef;
                }
            }
            throw new ConfigurationException("no such res-ref-name" + name);
        } else {
            throw new ConfigurationException("Unrecognized XPath: " + ddBean.getXpath());
        }
    }
View Full Code Here


    public void save(OutputStream outputArchive) throws ConfigurationException {
        try {
            dConfigRoot.toXML(outputArchive);
            outputArchive.flush();
        } catch (IOException e) {
            throw (ConfigurationException) new ConfigurationException("Unable to save configuration").initCause(e);
        }
    }
View Full Code Here

    public void restore(InputStream inputArchive) throws ConfigurationException {
        try {
            dConfigRoot.fromXML(inputArchive);
        } catch (IOException e) {
            throw (ConfigurationException) new ConfigurationException("Error reading configuration input").initCause(e);
        } catch (XmlException e) {
            throw (ConfigurationException) new ConfigurationException("Error parsing configuration input").initCause(e);
        }
    }
View Full Code Here

    public void saveDConfigBean(OutputStream outputArchive, DConfigBeanRoot bean) throws ConfigurationException {
        try {
            ((DConfigBeanRootSupport)bean).toXML(outputArchive);
            outputArchive.flush();
        } catch (IOException e) {
            throw (ConfigurationException) new ConfigurationException("Unable to save configuration").initCause(e);
        }
    }
View Full Code Here

    public DDBean getDDBean() {
        return ddBean;
    }

    public DConfigBean getDConfigBean(DDBean bean) throws ConfigurationException {
        throw new ConfigurationException("No DConfigBean matching DDBean "+bean);
    }
View Full Code Here

    public DDBean getDDBean() {
        return ddBean;
    }

    public DConfigBean getDConfigBean(DDBean bean) throws ConfigurationException {
        throw new ConfigurationException("No DConfigBean matching DDBean "+bean);
    }
View Full Code Here

    public void save(OutputStream outputArchive) throws ConfigurationException {
        try {
            dConfigRoot.toXML(outputArchive);
            outputArchive.flush();
        } catch (IOException e) {
            throw (ConfigurationException) new ConfigurationException("Unable to save configuration").initCause(e);
        }
    }
View Full Code Here

    public void restore(InputStream inputArchive) throws ConfigurationException {
        try {
            dConfigRoot.fromXML(inputArchive);
        } catch (IOException e) {
            throw (ConfigurationException) new ConfigurationException("Error reading configuration input").initCause(e);
        } catch (XmlException e) {
            throw (ConfigurationException) new ConfigurationException("Error parsing configuration input").initCause(e);
        }
    }
View Full Code Here

    public void saveDConfigBean(OutputStream outputArchive, DConfigBeanRoot bean) throws ConfigurationException {
        try {
            ((DConfigBeanRootSupport)bean).toXML(outputArchive);
            outputArchive.flush();
        } catch (IOException e) {
            throw (ConfigurationException) new ConfigurationException("Unable to save configuration").initCause(e);
        }
    }
View Full Code Here

            AdminObjectDCB[] list = new AdminObjectDCB[adminobjects.length+1];
            System.arraycopy(adminobjects, 0, list, 0, adminobjects.length);
            list[adminobjects.length] = dcb;
            return dcb;
        } else {
            throw new ConfigurationException("No DConfigBean matching DDBean "+bean.getXpath());
        }
    }
View Full Code Here

TOP

Related Classes of javax.enterprise.deploy.spi.exceptions.ConfigurationException

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.