Package org.apache.geronimo.jee.naming

Examples of org.apache.geronimo.jee.naming.ObjectFactory


     * @param plan
     */
    public WebContainerSection(Composite parent, FormToolkit toolkit, int style, JAXBElement plan) {
        super(parent, toolkit, style, plan);
        this.plan = (WebApp) plan.getValue();
        namingFactory = new ObjectFactory();
        createClient();
    }
View Full Code Here


     * @param plan
     */
    public OpenEjbJarCMPSection(Composite parent, FormToolkit toolkit, int style, JAXBElement plan) {
        super(parent, toolkit, style, plan);
        this.plan = (OpenejbJar) plan.getValue();
        namingFactory = new ObjectFactory();
        createClient();
    }
View Full Code Here

        if (isEmpty(textList.get(0).getText()) ||
            isEmpty(textList.get(1).getText()) && isEmpty(textList.get(2).getText())) {
            return false;
        }
        unitRef = (PersistenceUnitRef)eObject;
        ObjectFactory objectFactory = new ObjectFactory();
        if (unitRef == null) {
            unitRef = (PersistenceUnitRef)getEFactory().create(PersistenceUnitRef.class);
            JAXBElement plan = section.getPlan();

            // add the JAXBElement of the PersistenceContextRef
            JAXBModelUtils.getGbeanRefs(plan).add(objectFactory.createPersistenceUnitRef(unitRef));
            section.getObjectContainer().add(objectFactory.createPersistenceUnitRef(unitRef));
        }
        unitRef.setPersistenceUnitRefName(textList.get(0).getText());
        if (specifyUnit.getSelection() == true) {
            unitRef.setPersistenceUnitName(textList.get(1).getText());
            unitRef.setPattern(null);
        }
        else {
            unitRef.setPersistenceUnitName(null);
            Pattern pattern = unitRef.getPattern();
            if (pattern == null) {
                pattern = objectFactory.createPattern();
            }
            pattern.setName(textList.get(2).getText());
            pattern.setGroupId(textList.get(3).getText());
            pattern.setArtifactId(textList.get(4).getText());
            pattern.setVersion(textList.get(5).getText());
View Full Code Here

                gbeanRef = (GbeanRef)getEFactory().create(GbeanRef.class);
                JAXBElement plan = section.getPlan();

                // if we have a WebApp, add the JAXBElement of the GBeanRef, not the GBeanRef
                if (WebApp.class.isInstance(plan.getValue())) {
                    ObjectFactory objectFactory = new ObjectFactory();
                    JAXBModelUtils.getGbeanRefs(plan).add(objectFactory.createGbeanRef(gbeanRef));
                    section.getObjectContainer().add(objectFactory.createGbeanRef(gbeanRef));
                }
                else {
                    JAXBModelUtils.getGbeanRefs(plan).add(gbeanRef);
                    section.getObjectContainer().add(gbeanRef);
                }
View Full Code Here

            if (isEmpty(textList.get(0).getText()) ||
                isEmpty(textList.get(2).getText()) && isEmpty(textList.get(3).getText())) {
                return false;
            }
            contextRef = (PersistenceContextRef)eObject;
            ObjectFactory objectFactory = new ObjectFactory();
            if (contextRef == null) {
                contextRef = (PersistenceContextRef)getEFactory().create(PersistenceContextRef.class);
                JAXBElement plan = section.getPlan();

                // add the JAXBElement of the PersistenceContextRef
                JAXBModelUtils.getGbeanRefs(plan).add(objectFactory.createPersistenceContextRef(contextRef));
                section.getObjectContainer().add(objectFactory.createPersistenceContextRef(contextRef));
            }
            contextRef.setPersistenceContextRefName(textList.get(0).getText());
            contextRef.setPersistenceContextType(PersistenceContextType.fromValue(contextType.getText()));
            if (specifyUnit.getSelection() == true) {
                contextRef.setPersistenceUnitName(textList.get(2).getText());
                contextRef.setPattern(null);
            }
            else {
                contextRef.setPersistenceUnitName(null);
                Pattern pattern = contextRef.getPattern();
                if (pattern == null) {
                    pattern = objectFactory.createPattern();
                }
                pattern.setName(textList.get(3).getText());
                pattern.setGroupId(textList.get(4).getText());
                pattern.setArtifactId(textList.get(5).getText());
                pattern.setVersion(textList.get(6).getText());
View Full Code Here

TOP

Related Classes of org.apache.geronimo.jee.naming.ObjectFactory

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.