Examples of EjbLocalRefImpl


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

    private EjbLocalRefImpl[] getEjbLocalRefs(Element e) {
        NodeList ejbRefNL = e.getElementsByTagName("ejb-local-ref");
        EjbLocalRefImpl[] ejbLocalRefs = new EjbLocalRefImpl[ejbRefNL.getLength()];
        for (int i = 0; i < ejbRefNL.getLength(); i++) {
            Element ejbLocalRefE = (Element)ejbRefNL.item(i);
            EjbLocalRefImpl ejbLocalRef = new EjbLocalRefImpl();
            ejbLocalRef.setDescriptions(getDescriptions(ejbLocalRefE));
            ejbLocalRef.setEjbRefName(XML.getChildElementText(ejbLocalRefE, "ejb-ref-name"));
            ejbLocalRef.setEjbRefType(XML.getChildElementText(ejbLocalRefE, "ejb-ref-type"));
            ejbLocalRef.setLocalHome(XML.getChildElementText(ejbLocalRefE, "local-home"));
            ejbLocalRef.setLocal(XML.getChildElementText(ejbLocalRefE, "local"));
            ejbLocalRef.setEjbLink(XML.getChildElementText(ejbLocalRefE, "ejb-link"));
            ejbLocalRefs[i] = ejbLocalRef;
        }
        return ejbLocalRefs;
    }
View Full Code Here

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

        // <ejb-local-ref>
        EjbLocalRefImpl[] ejbLocalRefs = webAppImpl.getEjbLocalRefs();
        if (ejbLocalRefs != null) {
            for (int i = 0; i < ejbLocalRefs.length; i++) {
                Element ejbLocalRefE = doc.createElement("ejb-local-ref");
                EjbLocalRefImpl ejbLocalRef = ejbLocalRefs[i];
                addDescriptions(ejbLocalRefE, ejbLocalRef.getDescriptions());
                addTextElement(ejbLocalRefE, "ejb-ref-name", ejbLocalRef.getEjbRefName());
                addTextElement(ejbLocalRefE, "ejb-ref-type", ejbLocalRef.getEjbRefType());
                addTextElement(ejbLocalRefE, "local-home", ejbLocalRef.getLocalHome());
                addTextElement(ejbLocalRefE, "local", ejbLocalRef.getLocal());
                addTextElement(ejbLocalRefE, "ejb-link", ejbLocalRef.getEjbLink());
                webAppE.appendChild(ejbLocalRefE);
            }
        }       
       
        doc.appendChild(webAppE);
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.