Package org.apache.geronimo.xbeans.geronimo.naming

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


            containerId = buildAbstractNameQuery(null, module, name, type, NameFactory.RESOURCE_ADAPTER_MODULE);
        } else if (gerResourceRef.isSetResourceLink()) {
            containerId = buildAbstractNameQuery(null, module, gerResourceRef.getResourceLink().trim(), type, NameFactory.RESOURCE_ADAPTER_MODULE);
        } else {
            //construct name from components
            GerPatternType patternType = gerResourceRef.getPattern();
            containerId = buildAbstractNameQuery(patternType, type, NameFactory.RESOURCE_ADAPTER_MODULE, null);
        }
        return containerId;
    }
View Full Code Here


     * JavaBean getter for the Pattern property.  Gets a JavaBean of type
     * Pattern for the pattern child of this element, or null if there is no
     * pattern child.
     */
    public Pattern getPattern() {
        GerPatternType patternType = findPattern();
        if(patternType == null) return null;
        Pattern group = new Pattern();
        group.setGroupId(patternType.getGroupId());
        group.setArtifactId(patternType.getArtifactId());
        group.setVersion(patternType.getVersion());
        group.setModule(patternType.getModule());
        group.setName(patternType.getName());
        return group.empty() ? null : group;
    }
View Full Code Here

     * clearNonPatternFromChoice if a non-null Pattern is set.
     */
    public void setPattern(Pattern group) {
        Pattern old = getPattern();
        if(group != null) {
            GerPatternType patternType;
            if(old == null) {
                patternType = (GerPatternType) ((XmlObjectBase)getXmlObject()).get_store().add_element_user(new QName("http://geronimo.apache.org/xml/ns/naming-1.2", "pattern"));
            } else {
                patternType = findPattern();
            }
            if(!isEmpty(group.getGroupId())) {
                patternType.setGroupId(group.getGroupId());
            } else {
                if(patternType.isSetGroupId()) patternType.unsetGroupId();
            }
            if(!isEmpty(group.getArtifactId())) {
                patternType.setArtifactId(group.getArtifactId());
            } else {
                if(patternType.isSetArtifactId()) patternType.unsetArtifactId();
            }
            if(!isEmpty(group.getModule())) {
                patternType.setModule(group.getModule());
            } else {
                if(patternType.isSetModule()) patternType.unsetModule();
            }
            patternType.setName(group.getName());
            if(!isEmpty(group.getVersion())) {
                patternType.setVersion(group.getVersion());
            } else {
                if(patternType.isSetVersion()) patternType.unsetVersion();
            }
            clearNonPatternFromChoice();
        } else {
            if(old != null) {
                ((XmlObjectBase)getXmlObject()).get_store().remove_element(new QName("http://geronimo.apache.org/xml/ns/naming-1.2", "pattern"), 0);
View Full Code Here

            String[] interfaceTypesArray = gbeanRef.getRefTypeArray();
            Set interfaceTypes = new HashSet(Arrays.asList(interfaceTypesArray));
            Set queries = new HashSet();
            for (int j = 0; j < gbeanLocatorArray.length; j++) {
                GerPatternType patternType = gbeanLocatorArray[j];
                AbstractNameQuery abstractNameQuery = ENCConfigBuilder.buildAbstractNameQuery(patternType, null, null, interfaceTypes);
                queries.add(abstractNameQuery);
            }

            GBeanData gBeanData;
View Full Code Here

                moduleURI = gerResourceEnvRef.getAdminObjectModule().trim();
            }
            containerId = buildAbstractNameQuery(null, moduleURI, gerResourceEnvRef.getAdminObjectLink().trim(), NameFactory.JCA_ADMIN_OBJECT, NameFactory.RESOURCE_ADAPTER_MODULE);
        } else {
            //construct name from components
            GerPatternType patternType = gerResourceEnvRef.getPattern();
            containerId = buildAbstractNameQuery(patternType, NameFactory.JCA_ADMIN_OBJECT, NameFactory.RESOURCE_ADAPTER_MODULE, null);
        }
        return containerId;
    }
View Full Code Here

                moduleURI = gerResourceEnvRef.getAdminObjectModule().trim();
            }
            containerId = buildAbstractNameQuery(null, moduleURI, gerResourceEnvRef.getAdminObjectLink().trim(), NameFactory.JCA_ADMIN_OBJECT, NameFactory.RESOURCE_ADAPTER_MODULE);
        } else {
            //construct name from components
            GerPatternType patternType = gerResourceEnvRef.getPattern();
            containerId = buildAbstractNameQuery(patternType, NameFactory.JCA_ADMIN_OBJECT, NameFactory.RESOURCE_ADAPTER_MODULE, null);
        }
        return containerId;
    }
View Full Code Here

            } catch (GBeanAlreadyExistsException e) {
                throw new DeploymentException("tss link gbean already present", e);
            }
        }
        for (int i = 0; i < tsss.length; i++) {
            GerPatternType tss = (GerPatternType) tsss[i];
            AbstractNameQuery tssBeanName = ENCConfigBuilder.buildAbstractNameQuery(tss, NameFactory.CORBA_TSS, NameFactory.EJB_MODULE, null);
            AbstractName tssLinkName = module.getEarContext().getNaming().createChildName(ejbName, "tssRef" + i, "TSSLink");
            GBeanData tssLinkData = new GBeanData(tssLinkName, TSSLinkGBean.GBEAN_INFO);
            tssLinkData.setAttribute("jndiNames", jndiNames);
            tssLinkData.setReferencePattern("EJB", ejbName);
View Full Code Here

                AbstractNameQuery cssBean;
                if (remoteRef.isSetCssLink()) {
                    String cssLink = remoteRef.getCssLink().trim();
                    cssBean = buildAbstractNameQuery(null, null, cssLink, NameFactory.CORBA_CSS, NameFactory.EJB_MODULE);
                } else {
                    GerPatternType css = remoteRef.getCss();
                    cssBean = buildAbstractNameQuery(css, NameFactory.CORBA_CSS, NameFactory.EJB_MODULE, null);
                }

                // verify the cssBean query is valid
                try {
View Full Code Here

            containerId = buildAbstractNameQuery(null, module, name, type, NameFactory.RESOURCE_ADAPTER_MODULE);
        } else if (gerResourceRef.isSetResourceLink()) {
            containerId = buildAbstractNameQuery(null, module, gerResourceRef.getResourceLink().trim(), type, NameFactory.RESOURCE_ADAPTER_MODULE);
        } else {
            //construct name from components
            GerPatternType patternType = gerResourceRef.getPattern();
            containerId = buildAbstractNameQuery(patternType, type, NameFactory.RESOURCE_ADAPTER_MODULE, null);
        }
        return containerId;
    }
View Full Code Here

            containerId = buildAbstractNameQuery(null, module, name, type, NameFactory.RESOURCE_ADAPTER_MODULE);
        } else if (gerResourceRef.isSetResourceLink()) {
            containerId = buildAbstractNameQuery(null, module, gerResourceRef.getResourceLink().trim(), type, NameFactory.RESOURCE_ADAPTER_MODULE);
        } else {
            //construct name from components
            GerPatternType patternType = gerResourceRef.getPattern();
            containerId = buildAbstractNameQuery(patternType, type, NameFactory.RESOURCE_ADAPTER_MODULE, null);
        }
        return containerId;
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.xbeans.geronimo.naming.GerPatternType

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.