Examples of ApplicationInfo


Examples of org.apache.geronimo.j2ee.deployment.ApplicationInfo

        try {
            FileItem fileItem = (FileItem) getUploadFiles().get(MODULE_URI_PARAMETER);
            String fileName = fileItem.getName();
            if (fileName != null && fileName.length() > 0) {
                File uploadedFile = uploadFile(fileItem);
                ApplicationInfo applicationInfo = JSR88_Util.createApplicationInfo(request, uploadedFile);
                ConfigurationModuleType applicationType = applicationInfo.getType();
                if (ConfigurationModuleType.WAR == applicationType) {
                    WARConfigData data = setNewWARSessionData(request);
                    data.setUploadedWarUri(uploadedFile.toURI().toString());
                    data.parseWeb((WebModule) (applicationInfo.getModules().toArray()[0]));
                    return ENVIRONMENT_MODE + "-before";
                }
                if (ConfigurationModuleType.EAR == applicationType) {
                    EARConfigData earConfigData = setNewEARSessionData(request);
                    earConfigData.parseEAR(applicationInfo);
                    return EAR_MODE + "-before";
                }
                if (ConfigurationModuleType.EJB == applicationType) {
                    EjbConfigData ejbJarConfigData = setNewEjbJarSessionData(request);
                    ejbJarConfigData.parseEjbJar((EjbModule) (applicationInfo.getModules().toArray()[0]));
                    return EJB_MODE + "-before";
                }
            }
        } catch(Throwable e) {
            errorMsg = getRootCause(e).getMessage();
View Full Code Here

Examples of org.apache.geronimo.j2ee.deployment.ApplicationInfo

        }
        return classLoaders;
    }*/

    public static ApplicationInfo createApplicationInfo(PortletRequest actionRequest, File moduleFile) {
        ApplicationInfo applicationInfo = null;
        EARConfigBuilder.createPlanMode.set(Boolean.TRUE);
        try {
            DeploymentFactoryManager dfm = DeploymentFactoryManager.getInstance();
            DeploymentManager mgr = dfm.getDeploymentManager("deployer:geronimo:inVM", null, null);
            if (mgr instanceof JMXDeploymentManager) {
View Full Code Here

Examples of org.apache.geronimo.j2ee.deployment.ApplicationInfo

            mbe.createModule(module, plan, moduleFile, targetPath, specDDUrl, clientEnvironment, null, earName, naming, idBuilder);
        }
        if (standAlone) {
            Map<JndiKey, Map<String, Object>> appJndiContext = Module.share(Module.APP, module.getJndiContext());

            ApplicationInfo appInfo = new ApplicationInfo(ConfigurationModuleType.CAR,
                    serverEnvironment,
                    earName,
                    name,
                    null,
                    null,
                    null,
                    null,
                    appJndiContext);
            appInfo.getModules().add(module);
            return appInfo;
        } else {
            return module;
        }
    }
View Full Code Here

Examples of org.glassfish.internal.data.ApplicationInfo

                    Collection docs = null;
                    if(endpoint.getWebService().hasWsdlFile()) {

                        WebServiceContractImpl wscImpl = WebServiceContractImpl.getInstance();
                        ApplicationRegistry appRegistry = wscImpl.getApplicationRegistry();
                        ApplicationInfo appInfo = appRegistry.get(endpoint.getBundleDescriptor().getApplication().getRegistrationName());
                        URI deployedDir =appInfo.getSource().getURI();

                        URL pkgedWsdl;
                        if(deployedDir != null) {
                            if(endpoint.getBundleDescriptor().getApplication().isVirtual()) {
                                pkgedWsdl = deployedDir.resolve(endpoint.getWebService().getWsdlFileUri()).toURL();
View Full Code Here

Examples of org.glassfish.jersey.server.monitoring.ApplicationInfo

        }
    }

    private void processApplicationStatistics(ApplicationEvent event) {
        final long now = System.currentTimeMillis();
        final ApplicationInfo applicationInfo = new ApplicationInfoImpl(event.getResourceConfig(),
                new Date(now), event.getRegisteredClasses(),
                event.getRegisteredInstances(), event.getProviders());
        applicationInfoRefProvider.get().set(applicationInfo);
    }
View Full Code Here

Examples of org.libimobiledevice.ios.driver.binding.model.ApplicationInfo

      d = new RealDevice(info);
      log.info("new device detected (" + uuid + ") " + info.getDeviceName());
      reals.add(d);
      InstallerService s = new InstallerService(device);
      String id = "com.apple.mobilesafari";
      ApplicationInfo safari = s.getApplication(id);
      String v = (String) safari.getProperty("CFBundleVersion");
      log.info("device " + info.getDeviceName() + " = safari " + v);

      IPAShellApplication ipa = new IPAShellApplication(id, v, safari);
      apps.add(ipa);
View Full Code Here

Examples of org.restlet.ext.wadl.ApplicationInfo

        return items;
    }

    @Override
    public ApplicationInfo getApplicationInfo(Request request, Response response) {
        ApplicationInfo result = super.getApplicationInfo(request, response);

        DocumentationInfo docInfo = new DocumentationInfo(
                "This sample application shows how to generate online documentation.");
        docInfo.setTitle("First resource sample application.");
        result.setDocumentation(docInfo);

        return result;
    }
View Full Code Here

Examples of org.springframework.yarn.test.junit.ApplicationInfo

public class RestartContextTests extends AbstractYarnClusterTests {

  @Test
  @Timed(millis=70000)
  public void testAppSubmission() throws Exception {
    ApplicationInfo info = submitApplicationAndWait();
    assertThat(info, notNullValue());
    assertThat(info.getYarnApplicationState(), notNullValue());
    assertThat(info.getApplicationId(), notNullValue());
    assertThat(info.getYarnApplicationState(), is(YarnApplicationState.FINISHED));

    List<Resource> resources = ContainerLogUtils.queryContainerLogs(getYarnCluster(), info.getApplicationId());

    assertThat(resources, notNullValue());
    assertThat(resources.size(), is(6));

    for (Resource res : resources) {
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.