Examples of ApplicationBuilder


Examples of com.openshift.client.ApplicationBuilder

    String gitUrl = "git@github.com:openshift/openshift-java-client.git";
    Map<String, String> environmentVariables = new HashMap<String, String>();
    environmentVariables.put("adietish", "Andre Dietisheim");
   
    // operation
    new ApplicationBuilder(domain)
      .setName(name)
      .setStandaloneCartridge(as7)
      .setEmbeddableCartridges(embedded)
      .setApplicationScale(scale)
      .setTimeout(timeout)
View Full Code Here

Examples of com.openshift.client.ApplicationBuilder

    String gitUrl = "git@github.com:openshift/openshift-java-client.git";
    Map<String, String> environmentVariables = new HashMap<String, String>();
    environmentVariables.put("adietish", "Andre Dietisheim");
   
    // operation
    new ApplicationBuilder(domain)
      .setName(name)
      .setCartridges(Arrays.asList(cartridges))
      .setApplicationScale(scale)
      .setTimeout(timeout)
      .setInitialGitUrl(gitUrl)
View Full Code Here

Examples of com.openshift.client.ApplicationBuilder

  @Test(expected=AssertionFailedException.class)
  public void shouldNotAcceptEmptyCartridges() {
    // pre-conditions
   
    // operation
    new ApplicationBuilder(domain)
      .setName("rabbitinthehole")
      .setCartridges(Collections.<ICartridge>emptyList());
   
    // verification
  }
View Full Code Here

Examples of com.openshift.client.ApplicationBuilder

        ApplicationTestUtils.createRandomApplicationName();
    IStandaloneCartridge php = LatestVersionOf.php().get(user);
    IEmbeddableCartridge cron = LatestVersionOf.cron().get(user);
   
        // operation
    IApplication app = new ApplicationBuilder(domain)
      .setName(applicationName)
      .setStandaloneCartridge(php)
      .setEmbeddableCartridges(cron)
      .build();
View Full Code Here

Examples of org.qi4j.bootstrap.builder.ApplicationBuilder

    @Test
    public void testPassivationExceptionsAccrossStructure()
        throws AssemblyException, ActivationException
    {
        ApplicationBuilder appBuilder = new ApplicationBuilder( "TestApplication" );
        appBuilder.withLayer( "Layer 1" ).withModule( "Module A" ).withAssembler( new Assembler()
        {
            @Override
            public void assemble( ModuleAssembly module )
                throws AssemblyException
            {
                module.services( TestService.class ).
                    identifiedBy( "TestService_Module.A" ).
                    withActivators( FailBeforePassivationServiceActivator.class ).
                    instantiateOnStartup();
            }
        } );
        appBuilder.withLayer( "Layer 2" ).withModule( "Module B" ).withAssembler( new Assembler()
        {
            @Override
            public void assemble( ModuleAssembly module )
                throws AssemblyException
            {
                module.services( TestService.class ).
                    identifiedBy( "TestService_Module.B" ).
                    withActivators( FailAfterPassivationServiceActivator.class ).
                    instantiateOnStartup();
            }
        } );
        appBuilder.registerActivationEventListener( new TestActivationEventListener() );

        Application app = appBuilder.newApplication();

        try
        {
            Module moduleA = app.findModule( "Layer 1", "Module A" );
            TestService service = moduleA.findService( TestService.class ).get();
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.