Package org.jasig.portal.container.om.servlet

Examples of org.jasig.portal.container.om.servlet.EjbRefImpl


    private EjbRefImpl[] getEjbRefs(Element e) {
        NodeList ejbRefNL = e.getElementsByTagName("ejb-ref");
        EjbRefImpl[] ejbRefs = new EjbRefImpl[ejbRefNL.getLength()];
        for (int i = 0; i < ejbRefNL.getLength(); i++) {
            Element ejbRefE = (Element)ejbRefNL.item(i);
            EjbRefImpl ejbRef = new EjbRefImpl();
            ejbRef.setDescriptions(getDescriptions(ejbRefE));
            ejbRef.setEjbRefName(XML.getChildElementText(ejbRefE, "ejb-ref-name"));
            ejbRef.setEjbRefType(XML.getChildElementText(ejbRefE, "ejb-ref-type"));
            ejbRef.setHome(XML.getChildElementText(ejbRefE, "home"));
            ejbRef.setRemote(XML.getChildElementText(ejbRefE, "remote"));
            ejbRef.setEjbLink(XML.getChildElementText(ejbRefE, "ejb-link"));
            ejbRefs[i] = ejbRef;
        }
        return ejbRefs;
    }
View Full Code Here


        // <ejb-ref>
        EjbRefImpl[] ejbRefs = webAppImpl.getEjbRefs();
        if (ejbRefs != null) {
            for (int i = 0; i < ejbRefs.length; i++) {
                Element ejbRefE = doc.createElement("ejb-ref");
                EjbRefImpl ejbRef = ejbRefs[i];
                addDescriptions(ejbRefE, ejbRef.getDescriptions());
                addTextElement(ejbRefE, "ejb-ref-name", ejbRef.getEjbRefName());
                addTextElement(ejbRefE, "ejb-ref-type", ejbRef.getEjbRefType());
                addTextElement(ejbRefE, "home", ejbRef.getHome());
                addTextElement(ejbRefE, "remote", ejbRef.getRemote());
                addTextElement(ejbRefE, "ejb-link", ejbRef.getEjbLink());
                webAppE.appendChild(ejbRefE);
            }
        }
       
        // <ejb-local-ref>
View Full Code Here

TOP

Related Classes of org.jasig.portal.container.om.servlet.EjbRefImpl

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.