Package org.apache.geronimo.jee.deployment

Examples of org.apache.geronimo.jee.deployment.Reference


        case REFERENCE:
            if (isEmpty(textList.get(0).getText()) || isEmpty(textList.get(1).getText()) ||
                    isEmpty(textList.get(2).getText())) {
                return false;
            }
            Reference reference = (Reference)eObject;
            if (reference == null) {
                reference = (Reference)getEFactory().create(Reference.class);
                gbean = (Gbean)section.getSelectedObject();

                // add the JAXBElement of a Dependency, not the Dependency
                ObjectFactory objectFactory = new ObjectFactory();
                gbean.getAttributeOrXmlAttributeOrReference().add(objectFactory.createGbeanReference(reference));
            }
            reference.setName(textList.get(0).getText());
            reference.setGroupId(textList.get(1).getText());
            reference.setArtifactId(textList.get(2).getText());
            reference.setVersion(textList.get(3).getText());
            reference.setModule(textList.get(4).getText());
            reference.setType(textList.get(5).getText());
            reference.setCustomFoo(textList.get(6).getText());
            break;
        }
        return true;
    }
View Full Code Here


        + "\", module = \"" + dependency.getModule()
        + "\", type = \"" + dependency.getType()
        + "\", custom name = \""
        + dependency.getCustomFoo() + "\"";
        } else if (Reference.class.isInstance(object)) {
      Reference reference = (Reference) object;
      return "Reference: name = \"" + reference.getName()
        + "\", group = \"" + reference.getGroupId()
        + "\", artifact = \""
        + reference.getArtifactId()
        + "\", version = \"" + reference.getVersion()
        + "\", module = \"" + reference.getModule()
        + "\", type = \"" + reference.getType()
        + "\", custom name = \""
        + reference.getCustomFoo() + "\"";
        }
    }

    return null;
      }
View Full Code Here

  JAXBElement<Reference> referenceElement = getReferenceElement(elelist);
  if (referenceElement == null) {
      referenceElement = objectFactory.createGbeanReference(null);
      elelist.add(referenceElement);
  }
  Reference ref = new Reference();
  ref.setName("ServerInfo");
  ref.setCustomFoo("ServerInfo");
  referenceElement.setValue(ref);

  // set the xml-reference
  JAXBElement<XmlAttributeType> xmlrefElement = getXmlReferenceElement(elelist);
  if (xmlrefElement == null) {
View Full Code Here

TOP

Related Classes of org.apache.geronimo.jee.deployment.Reference

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.