Package org.apache.geronimo.jee.deployment

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


    env.setDependencies(dependencies);
      }

      // if there are no same dependencies in plan,then add them
      for (int i = 0; i < page1.getDrivers().length; i++) {
    Dependency selectedDependency = (Dependency) page1.getDrivers()[i];
    if (!dependencies.getDependency().contains(selectedDependency)) {
        dependencies.getDependency().add(selectedDependency);
    }
      }
View Full Code Here


    }
   
    protected void setSharedLibDependency(boolean enable) {
        if (enable) {
            Dependencies deptype = getDependencies(true);
            Dependency sharedLib = getDeploymentObjectFactory().createDependency();
            sharedLib.setGroupId("org.apache.geronimo.configs");
            sharedLib.setArtifactId("sharedlib");
            sharedLib.setType("car");
            deptype.getDependency().add(sharedLib);
        } else {
            Dependencies deptype = getDependencies(false);
            if (deptype != null) {
                Artifact artifact = getSharedLibDependency(deptype);
View Full Code Here

  }

  public Object getInput() {
      // to be obtained dynamically
      Dependency dependency = new Dependency();
      dependency.setArtifactId("system-database");
      dependency.setGroupId("org.apache.geronimo.configs");
      dependency.setVersion("");
      dependency.setType("car");
      dependencies.add(dependency);
      return dependencies;
  }
View Full Code Here

            // no item selected!
            return false;
        case 0:
            // Adding Manually
            if (eObject == null) {
                eObject = new Dependency();
                section.getObjectContainer().add(eObject);
            }
            processEAttributes(getPages()[0]);
            break;
        case 1:
            // Adding from Server
            TableItem[] selectedItems = dependencyTable.getSelection();
            for (int i = 0; i < selectedItems.length; i++) {
                TableItem selectedItem = selectedItems[i];
                Dependency dependency = (Dependency) selectedItem.getData();
                section.getObjectContainer().add(dependency);
            }
            break;
        }
        return true;
View Full Code Here

            List<Dependency> serverList = GeronimoServerInfo.getInstance().getCommonLibs();
            List<Dependency> alreadyAddedDependencies = (List<Dependency>) section.getObjectContainer();
            serverList.removeAll(alreadyAddedDependencies);
            for (int i = 0; i < serverList.size(); ++i) {
                TableItem tabItem = new TableItem(dependencyTable, SWT.NONE);
                Dependency dependency = serverList.get(i);
                tabItem.setData(dependency);
                tabItem.setText(dependencyToStringArray(dependency));
            }
        }
View Full Code Here

    public Dependency getDependency() {
  if (data[0].trim().length() == 0 || data[1].trim().length() == 0
    || data[2].trim().length() == 0 || data[3].trim().length() == 0) {
      return null;
  }
  Dependency dependency = new Dependency();
  dependency.setGroupId(data[0]);
  dependency.setArtifactId(data[1]);
  dependency.setVersion(data[2]);
  dependency.setType(data[3]);
  return dependency;
    }
View Full Code Here

  Dependencies dependencies = env.getDependencies();
  if (dependencies == null) {
      dependencies = new Dependencies();
      env.setDependencies(dependencies);
  }
  Dependency securityDependency = new Dependency();
  securityDependency.setGroupId("org.apache.geronimo.framework");
  securityDependency.setArtifactId("j2ee-security");
  securityDependency.setType("car");
  if (!dependencies.getDependency().contains(securityDependency)) {
      dependencies.getDependency().add(securityDependency);
  }
    }
View Full Code Here

TOP

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

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.