Examples of Application


Examples of org.apache.pivot.wtk.Application

     * Terminates the application context.
     */
    public static boolean exit() {
        boolean cancelShutdown = false;

        Application application = applicationContext.getApplication();
        if (application != null) {
            try {
                cancelShutdown = application.shutdown(true);
            } catch(Exception exception) {
                displayException(exception);
            }

            if (!cancelShutdown) {
View Full Code Here

Examples of org.apache.slider.providers.agent.application.metadata.Application

          for (String key : status.getConfigs().keySet()) {
            Map<String, String> configs = status.getConfigs().get(key);
            publishComponentConfiguration(key, key, configs.entrySet());
          }

          Application application = getMetainfo().getApplication();
          List<ExportGroup> exportGroups = application.getExportGroups();
          if (exportGroups != null && !exportGroups.isEmpty()) {

            String configKeyFormat = "${site.%s.%s}";
            String hostKeyFormat = "${%s_HOST}";
View Full Code Here

Examples of org.apache.wicket.Application

   * Covariant override for easy getting the current {@link WebApplication} without having to cast
   * it.
   */
  public static WebApplication get()
  {
    Application application = Application.get();

    if (application instanceof WebApplication == false)
    {
      throw new WicketRuntimeException(
        "The application attached to the current thread is not a " +
View Full Code Here

Examples of org.apache.wicket.jmx.wrapper.Application

        tempDomain = name + "-" + i++;
        appBeanName = new ObjectName(tempDomain + ":type=Application");
      }
      domain = tempDomain;

      Application appBean = new Application(application);
      register(application, appBean, appBeanName);

      register(application, new ApplicationSettings(application), new ObjectName(domain
        + ":type=Application,name=ApplicationSettings"));
      register(application, new DebugSettings(application), new ObjectName(domain
View Full Code Here

Examples of org.apache.wink.common.model.wadl.Application

            ResourceRegistry resourceRegistry = context.getAttribute(ResourceRegistry.class);
            Set<Class<?>> c = new HashSet<Class<?>>();
            Class<?> resourceClass = searchResult.getResource().getResourceClass();
            c.add(resourceClass);
            logger.trace("Found the resource classes {}", c);
            Application app = new WADLHandlerWADLGenerator().generate(context.getUriInfo().getBaseUri().toString(), c);
            if(context.getUriInfo().getMatchedResources().size() > 1) {
                // sub-resource locator so lets correct the path
                app.getResources().get(0).getResource().get(0).setPath(context.getUriInfo().getMatchedURIs().get(0));
            }

            Set<String> httpMethods = resourceRegistry.getOptions(searchResult.getResource());

            logger
View Full Code Here

Examples of org.auraframework.instance.Application

     */
    public static void main(String[] args) {
        try {
            Aura.getContextService().startContext(Mode.PROD, Format.HTML, Authentication.UNAUTHENTICATED);
            String tag = args[0];
            Application app = Aura.getInstanceService().getInstance(tag, ApplicationDef.class);
            Aura.getRenderingService().render(app, System.out);
            System.out.println();
        } catch (Exception e) {
            log.fatal(e.getClass() + ": " + e.getMessage(), e);
            System.exit(1);
View Full Code Here

Examples of org.codehaus.loom.interfaces.Application

        //lock for application startup and shutdown
        synchronized( entry )
        {
            final String name = entry.getProfile().getMetaData().getName();

            Application application = entry.getApplication();
            if( null == application )
            {
                try
                {
                    final Application newApp = new DefaultApplication();
                    final Logger childLogger =
                        getLogger().getChildLogger( name );
                    org.codehaus.dna.impl.ContainerUtil.enableLogging(
                        newApp, childLogger );

                    final ApplicationContext context =
                        createApplicationContext( entry );
                    newApp.setApplicationContext( context );

                    org.codehaus.dna.impl.ContainerUtil.initialize( newApp );

                    application = newApp;
                }
View Full Code Here

Examples of org.deftserver.web.Application

  public static void main(String[] args) {
    Map<String, RequestHandler> handlers = Maps.newHashMap();
    handlers.put("/", new ExampleRequestHandler());
   
    Application application = new Application(handlers);
    application.setStaticContentDir("static");
   
    HttpServerDescriptor.KEEP_ALIVE_TIMEOUT = 30 * 1000// 30s 
    HttpServerDescriptor.READ_BUFFER_SIZE = 1500;      // 1500 bytes
    HttpServerDescriptor.WRITE_BUFFER_SIZE = 1500;      // 1500 bytes
   
View Full Code Here

Examples of org.dmg.pmml.Application

  public static PMML buildSkeletonPMML() {
    String formattedDate =
        new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZZ", Locale.ENGLISH).format(new Date());
    Header header = new Header();
    header.setTimestamp(new Timestamp().withContent(formattedDate));
    header.setApplication(new Application("Oryx"));
    return new PMML(header, null, "4.2.1");
  }
View Full Code Here

Examples of org.dmg.pmml31.ApplicationDocument.Application

        PMML pmmlObject = result.addNewPMML();
        pmmlObject.setVersion("3.0");
        // head of PMML document
        Header header = pmmlObject.addNewHeader();
        header.setCopyright("www.gridminer.org");
        Application application = header.addNewApplication();
        application.setName("GridMiner");
        application.setVersion("1.0");
        //data dictionary
        DataDictionary dataDictionary = pmmlObject.addNewDataDictionary();
        BigInteger pom = new BigInteger(String.valueOf(columnCount));
        dataDictionary.setNumberOfFields(pom);
       
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.