Examples of Dependencies


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

        artifact.setGroupId("org.apache.geronimo.testsuite");
        artifact.setArtifactId("agent-ear");
        artifact.setVersion("2.2-SNAPSHOT");
        artifact.setType("ear");
        environment.setModuleId(artifact);
        Dependencies dependencies = deploymentFactory.createDependencies();
        Dependency dependency = deploymentFactory.createDependency();
        dependency.setGroupId("org.apache.geronimo.testsuite");
        dependency.setArtifactId("agent-ds");
        dependency.setVersion("2.2-SNAPSHOT");
        dependency.setType("car");
        dependencies.getDependency().add(dependency);
        environment.setDependencies(dependencies);
        openEjbJar.setEnvironment (environment);

        // set the Cmp Connection Factory
        ResourceLocator resourceLocator = namingFactory.createResourceLocator();
View Full Code Here

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

  
    Environment env = serviceFactory.createEnvironment();
    env.setModuleId(artifact);

    if (cfg != null && cfg.isSharedLib()) {
      Dependencies dt = serviceFactory.createDependencies();
      Dependency sharedLib = createDependency("org.apache.geronimo.configs", "sharedlib", null, "car");
      dt.getDependency().add(sharedLib);
      env.setDependencies(dt);
    }

         Trace.tracePoint("Exit ", "V21DeploymentPlanCreationOperation.getConfigEnvironment", env);
    return env;
View Full Code Here

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

        artifact.setGroupId("org.apache.geronimo.testsuite");
        artifact.setArtifactId("agent-ear");
        artifact.setVersion("2.2-SNAPSHOT");
        artifact.setType("ear");
        environment.setModuleId(artifact);
        Dependencies dependencies = deploymentFactory.createDependencies();
        Dependency dependency = deploymentFactory.createDependency();
        dependency.setGroupId("org.apache.geronimo.testsuite");
        dependency.setArtifactId("agent-ds");
        dependency.setVersion("2.2-SNAPSHOT");
        dependency.setType("car");
        dependencies.getDependency().add(dependency);
        environment.setDependencies(dependencies);
        webApp.setEnvironment(environment);

        // set the Container Config TODO
        //ContainerConfig containerConfig = webFactory.createContainerConfig();
View Full Code Here

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

        artifact.setGroupId("org.apache.geronimo.testsuite");
        artifact.setArtifactId("agent-ear");
        artifact.setVersion("2.2-SNAPSHOT");
        artifact.setType("ear");
        environment.setModuleId(artifact);
        Dependencies dependencies = deploymentFactory.createDependencies();
        Dependency dependency = deploymentFactory.createDependency();
        dependency.setGroupId("org.apache.geronimo.testsuite");
        dependency.setArtifactId("agent-ds");
        dependency.setVersion("2.2-SNAPSHOT");
        dependency.setType("car");
        dependencies.getDependency().add(dependency);
        environment.setDependencies(dependencies);
        application.setEnvironment(environment);

        // set the Module
        Module module = applicationFactory.createModule();
View Full Code Here

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

    private Dependencies getDependencies() {
        if (environment == null) {
            environment = new Environment();
        }
        if (environment.getDependencies() == null) {
            environment.setDependencies(new Dependencies());
        }
        return environment.getDependencies();
    }
View Full Code Here

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

      Environment env = application.getEnvironment();
      if (env == null) {
    env = new Environment();
    application.setEnvironment(env);
      }
      Dependencies dependencies = env.getDependencies();
      if (dependencies == null) {
    dependencies = new Dependencies();
    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);
    }
      }

      ExtModule extModule;
      if (eObject == null) {
View Full Code Here

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

        Environment type = getEnvironment(false);
        return type != null && type.getSuppressDefaultEnvironment() != null;
    }
   
    protected boolean isSharedLibDependency() {
        Dependencies depType = getDependencies(false);
        if(depType != null) {
            return getSharedLibDependency(depType) != null;
        }
        return false;
    }
View Full Code Here

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

        }
    }
   
    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);
                if(artifact != null) {
                    deptype.getDependency().remove(artifact);
                }
            }
        }
    }
View Full Code Here

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

            }
        }
    }
   
    private Artifact getSharedLibDependency(Dependencies dependencies) {
        Dependencies depType = getDependencies(false);
        List dependenciesList = depType.getDependency();
        Iterator i = dependenciesList.iterator();
        while(i.hasNext()) {
            Artifact artifact = (Artifact) i.next();
            if("org.apache.geronimo.configs".equals(artifact.getGroupId()) && "sharedlib".equals(artifact.getArtifactId()) && "car".equals(artifact.getType())) {
                return artifact;
View Full Code Here

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

    }
   
    private Dependencies getDependencies(boolean create) {
        Environment env = getEnvironment(create);
        if(env != null) {
            Dependencies dep = env.getDependencies();
            if (dep == null && create) {
                dep = getDeploymentObjectFactory().createDependencies();
                env.setDependencies(dep);
            }
            return dep;
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.