Package org.apache.geronimo.jee.application

Examples of org.apache.geronimo.jee.application.Application


                    environment = plan.getEnvironment();
            }
        }
        else if (GeronimoUtils.isEarModule(module)) {
            if (getApplicationDeploymentPlan(module) != null) {
                Application plan = getApplicationDeploymentPlan(module).getValue();
                if (plan != null)
                    environment = plan.getEnvironment();
            }
        }
        else if (GeronimoUtils.isRARModule(module)) {
            if (getConnectorDeploymentPlan(module) != null) {
                Connector plan = getConnectorDeploymentPlan(module).getValue();
                if (plan != null)
                    environment = plan.getEnvironment();
            }
        }else if (GeronimoUtils.isAppClientModule(module)) {
            if (getAppClientDeploymentPlan(module) != null) {
                ApplicationClient plan = getAppClientDeploymentPlan(module).getValue();
                if (plan != null)
                    environment = plan.getServerEnvironment();
            }
        }

        Trace.tracePoint("Exit ", "DependencyHelper.getEnvironment", environment);
        return environment;
View Full Code Here


  public JAXBElement createGeronimoApplicationDeploymentPlan(IFile dpFile) throws Exception {
    Trace.tracePoint("Entry",
        "V21DeploymentPlanCreationOperation.createGeronimoApplicationDeploymentPlan", dpFile);

    org.apache.geronimo.jee.application.ObjectFactory applicationFactory = new org.apache.geronimo.jee.application.ObjectFactory();
    Application application = applicationFactory.createApplication();

    application.setApplicationName(getProject().getName());
    application.setEnvironment(getConfigEnvironment());

    JAXBElement jaxbElement = applicationFactory.createApplication(application);
    JAXBUtils.marshalDeploymentPlan(jaxbElement, dpFile);

    Trace.tracePoint("Exit ", "V21DeploymentPlanCreationOperation.createGeronimoApplicationDeploymentPlan",
View Full Code Here

                  environment = plan.getEnvironment();
             }
        }
        else if (isEarModule(module)) {
          if (getApplicationDeploymentPlan(module)!=null) {
            Application plan = getApplicationDeploymentPlan(module).getValue();
            if (plan != null)
              environment = plan.getEnvironment();
          }
        }
        else if (isRARModule(module)) {
          if (getConnectorDeploymentPlan(module)!=null) {
              Connector plan = getConnectorDeploymentPlan(module).getValue();
              if (plan != null)
                  environment = plan.getEnvironment();
          }
        }

        if (environment != null
            && environment.getModuleId() != null) {
View Full Code Here

      return false;
  }

  // add the dependencies and ext-module to plan
  if (Application.class.isInstance(plan.getValue())) {
      Application application = (Application) plan.getValue();
      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) {
    eObject = getEFactory().create(ExtModule.class);
    extModule = (ExtModule) eObject;
    java.util.List<ExtModule> extModuleList = application
      .getExtModule();
    extModuleList.add(extModule);
      } else {
    extModule = (ExtModule) eObject;
      }
View Full Code Here

        managedForm.addPart(new GBeanSection(getDeploymentPlan(), JAXBModelUtils.getGbeans(getDeploymentPlan()), body, toolkit, getStyle()));
        managedForm.addPart(new ClassFilterSection(getDeploymentPlan(), JAXBModelUtils.getEnvironment(getDeploymentPlan()), body, toolkit, getStyle(), true, true));
        managedForm.addPart(new ClassFilterSection(getDeploymentPlan(), JAXBModelUtils.getEnvironment(getDeploymentPlan()), body, toolkit, getStyle(), true, false));

        if (Application.class.isInstance(getDeploymentPlan().getValue())) {
            Application application = (Application)((AbstractGeronimoDeploymentPlanEditor) getEditor()).getDeploymentPlan().getValue();
            managedForm.addPart(new ModuleSection(getDeploymentPlan(), body, toolkit, getStyle(), application.getModule()));
            managedForm.addPart(new ExtModuleSection(getDeploymentPlan(), body, toolkit, getStyle(), application.getExtModule()));
        }
        if (Connector.class.isInstance(getDeploymentPlan().getValue())) {
            Connector connector = (Connector)((AbstractGeronimoDeploymentPlanEditor) getEditor()).getDeploymentPlan().getValue();
            managedForm.addPart(new AdminObjectSection(getDeploymentPlan(), body, toolkit, getStyle(), connector.getAdminobject()));
        }
View Full Code Here

    super(editor, id, title);
  }

  @Override
  protected void fillBody(IManagedForm managedForm) {
    Application application = (Application) ((AbstractGeronimoDeploymentPlanEditor) getEditor())
        .getDeploymentPlan().getValue();
    managedForm.addPart(new DBPoolSection(getDeploymentPlan(), body,
        toolkit, getStyle(), application.getExtModule()))
  }
View Full Code Here

      return true;

  // is add, need to add the gbean into plan
  Object planValue = plan.getValue();
  if (Application.class.isInstance(planValue)) {
      Application application = (Application) planValue;

      // set dependency
      Environment env = application.getEnvironment();
      if (env == null) {
    env = new Environment();
    application.setEnvironment(env);
      }
      setDependency(env);

      // add the gbean into plan
      JAXBElement<Gbean> gbeanElement = objectFactory.createGbean(gbean);
      application.getService().add(gbeanElement);
  } else if (WebApp.class.isInstance(planValue)) {
      WebApp webapp = (WebApp) planValue;

      // set dependency
      Environment env = webapp.getEnvironment();
View Full Code Here

TOP

Related Classes of org.apache.geronimo.jee.application.Application

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.