Examples of application()


Examples of org.jboss.errai.workspaces.client.icons.ErraiImageBundle.application()

  public void addLink(final String name, final Tool tool)
  {
    ResourceFactory resourceFactory = GWT.create(ResourceFactory.class);
    ErraiImageBundle erraiImageBundle = GWT.create(ErraiImageBundle.class);
    ImageResource resource = resourceFactory.createImage(tool.getName()) != null ?
        resourceFactory.createImage(tool.getName()) : erraiImageBundle.application();

    WSLaunchButton button = new WSLaunchButton(resource, name);
    button.addClickListener(
        new ClickHandler()
        {         
View Full Code Here

Examples of org.jboss.errai.workspaces.client.icons.ErraiImageBundle.application()

  public void addLink(final String name, final Tool tool)
  {
    ResourceFactory resourceFactory = GWT.create(ResourceFactory.class);
    ErraiImageBundle erraiImageBundle = GWT.create(ErraiImageBundle.class);
    ImageResource resource = resourceFactory.createImage(tool.getName()) != null ?
        resourceFactory.createImage(tool.getName()) : erraiImageBundle.application();

    WSLaunchButton button = new WSLaunchButton(resource, name);
    button.addClickListener(
        new ClickHandler()
        {         
View Full Code Here

Examples of org.qi4j.bootstrap.LayerAssembly.application()

                    .setMetaInfo( new ServiceName( "Foo" ) );
                module.services( StringService.class, LongService.class );
                LayerAssembly layerAssembly = module.layer();
                module.objects( ServiceUser.class );

                ApplicationAssembly applicationAssembly = layerAssembly.application();
                LayerAssembly layer2Assembly = applicationAssembly.layer( "Other layer" );
                layerAssembly.uses( layer2Assembly );

                ModuleAssembly module2 = layer2Assembly.module( "Other module" );
View Full Code Here

Examples of org.qi4j.bootstrap.LayerAssembly.application()

    public void assemble( ModuleAssembly module )
        throws AssemblyException
    {
        LayerAssembly layerAssembly = module.layer();
        layerAssembly.application().setName( "testapp" );
        module.transients( TestComposite.class );
        module.services( FileConfigurationService.class );
    }

    @Test
View Full Code Here

Examples of org.qi4j.bootstrap.SingletonAssembler.application()

        {
            assertTrue( "Service should not be Active before accessed", !service.isActive() );
            assertTrue( service.get().data().activated );
            assertTrue( "Service should be Active after access.", service.isActive() );
        }
        assembly.application().passivate();
    }

    @Test
    public void givenMixedSuccessFailurePassivationWhenPassivatingExpectAllPassivateMethodsToBeCalled()
        throws Exception
View Full Code Here

Examples of org.qi4j.bootstrap.SingletonAssembler.application()

            assertTrue( data.activated );
            assertTrue( "Service should be Active after access.", service.isActive() );
        }
        try
        {
            assembly.application().passivate();
            fail( "PassivationException should have been thrown." );
        }
        catch( PassivationException e )
        {
            // Expected
View Full Code Here

Examples of org.qi4j.bootstrap.SingletonAssembler.application()

        assertTrue( service.get().data().activated );
        assertTrue( "Service should be Active after access.", service.isActive() );

        try
        {
            assembly.application().passivate();
            fail( "Exception should have been thrown." );
        }
        catch( IllegalStateException e )
        {
            // Expected
View Full Code Here

Examples of org.qi4j.bootstrap.SingletonAssembler.application()

            assertTrue( service.get().data().activated );
            assertTrue( "Service should be Active after access.", service.isActive() );
        }
        try
        {
            assembly.application().passivate();
            fail( "Exception should have been thrown." );
        }
        catch( PassivationException e )
        {
            // Expected
View Full Code Here

Examples of org.qi4j.bootstrap.SingletonAssembler.application()

        service.get().doStuff();

        assertTrue( isActive );

        assembly.application().passivate();

        assertFalse( isActive );
    }

    @Mixins( { LazyActivatedServiceTest.ActivatableMixin.class, MyServiceMixin.class } )
View Full Code Here

Examples of org.qi4j.bootstrap.SingletonAssembler.application()

        service.get();

        assertTrue( isActive );

        assembly.application().passivate();

        assertFalse( isActive );
    }

    @Mixins( ActivatableMixin.class )
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.