Examples of GerResourceEnvRefType


Examples of org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType

            //}
        }
        // Handle removed or new resourceEnvRefs
        for (Iterator it = before.iterator(); it.hasNext();) {
            ResourceEnvRef adapter = (ResourceEnvRef) it.next();
            GerResourceEnvRefType all[] = getWebApp().getResourceEnvRefArray();
            for (int i = 0; i < all.length; i++) {
                if(all[i] == adapter) {
                    getWebApp().removeResourceEnvRef(i);
                    break;
                }
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType

            try {
                iface = cl.loadClass(type);
            } catch (ClassNotFoundException e) {
                throw new DeploymentException("could not load class " + type, e);
            }
            GerResourceEnvRefType gerResourceEnvRef = (GerResourceEnvRefType) refMap.get(name);
            try {
                AbstractNameQuery containerId = getAdminObjectContainerId(name, gerResourceEnvRef);
                Reference ref = refContext.getAdminObjectRef(containerId, iface, earContext);

                builder.bind(name, ref);
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType

    private static Map mapResourceEnvRefs(GerResourceEnvRefType[] refs) {
        Map refMap = new HashMap();
        if (refs != null) {
            for (int i = 0; i < refs.length; i++) {
                GerResourceEnvRefType ref = refs[i];
                refMap.put(ref.getRefName().trim(), ref);
            }
        }
        return refMap;
    }
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType

    public String getAdminObjectLink() {
        return getResourceRef().getAdminObjectLink();
    }

    public void setAdminObjectLink(String link) {
        GerResourceEnvRefType ref = getResourceRef();
        if(link != null && ref.isSetPattern()) {
            clearPatternFromChoice();
        }
        String old = getAdminObjectLink();
        ref.setAdminObjectLink(link);
        pcs.firePropertyChange("adminObjectLink", old, link);
    }
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType

    public String getAdminObjectModule() {
        return getResourceRef().getAdminObjectModule();
    }

    public void setAdminObjectModule(String module) {
        GerResourceEnvRefType ref = getResourceRef();
        if(module != null && ref.isSetPattern()) {
            clearPatternFromChoice();
        }
        String old = getAdminObjectModule();
        ref.setAdminObjectModule(module);
        pcs.firePropertyChange("adminObjectModule", old, module);
    }
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType

        pcs.firePropertyChange("adminObjectModule", old, module);
    }


    protected void clearNonPatternFromChoice() {
        GerResourceEnvRefType ref = getResourceRef();
        if(ref.isSetAdminObjectLink()) {
            String temp = ref.getAdminObjectLink();
            ref.unsetAdminObjectLink();
            pcs.firePropertyChange("adminObjectLink", temp, null);
        }
        if(ref.isSetAdminObjectModule()) {
            String temp = ref.getAdminObjectModule();
            ref.unsetAdminObjectModule();
            pcs.firePropertyChange("adminObjectModule", temp, null);
        }
    }
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType

            try {
                iface = cl.loadClass(type);
            } catch (ClassNotFoundException e) {
                throw new DeploymentException("could not load class " + type, e);
            }
            GerResourceEnvRefType gerResourceEnvRef = refMap.get(name);
            refMap.remove(name);
            try {
                String refType = getStringValue(resourceEnvRef.getResourceEnvRefType());
                if (refType.equals("javax.transaction.UserTransaction")) {
                    Reference ref = new UserTransactionReference();
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType

    private static Map<String, GerResourceEnvRefType> mapResourceEnvRefs(XmlObject[] refs) {
        Map<String, GerResourceEnvRefType> refMap = new HashMap<String, GerResourceEnvRefType>();
        if (refs != null) {
            for (XmlObject ref1 : refs) {
                GerResourceEnvRefType ref = (GerResourceEnvRefType) ref1.copy().changeType(GerResourceEnvRefType.type);
                refMap.put(ref.getRefName().trim(), ref);
            }
        }
        return refMap;
    }
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType

            if (gerMessageDestinationType != null) {
                addMethodDestinationRef(annotatedApp, resourceName, resourceType, method, field, annotation);
                return true;
            } else {
                //if it maps to a resource-env-ref in the geronimo plan, it's a resource-ref
                GerResourceEnvRefType resourceEnvRefType = null;
                if (refMap != null) {
                    resourceEnvRefType = refMap.get(resourceName);
                }
                if (resourceEnvRefType != null || resourceType.equals("javax.transaction.UserTransaction")) {
                    //mapped resource-env-ref
View Full Code Here

Examples of org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType

            try {
                iface = cl.loadClass(type);
            } catch (ClassNotFoundException e) {
                throw new DeploymentException("could not load class " + type, e);
            }
            GerResourceEnvRefType gerResourceEnvRef = refMap.get(name);
            refMap.remove(name);
            try {
                String refType = getStringValue(resourceEnvRef.getResourceEnvRefType());
                if (refType.equals("javax.transaction.UserTransaction")) {
                    Reference ref = new UserTransactionReference();
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.