Package org.qi4j.api.composite

Examples of org.qi4j.api.composite.TransientDescriptor.type()


        // Test with Standard composite
        AddressComposite address = module.newTransient( AddressComposite.class );
        TransientDescriptor addressDescriptor = spi.getTransientDescriptor( address );

        assertNotNull( addressDescriptor );
        assertEquals( AddressComposite.class, addressDescriptor.type() );
        assertTrue( TransientDescriptor.class.isAssignableFrom( addressDescriptor.getClass() ) );
    }

    @Test
    public final void testCompositeDescriptorWithMixin()
View Full Code Here


    {
        // Test with composite
        TransientDescriptor addressDesc = module.transientDescriptor( AddressComposite.class.getName() );
        assertNotNull( addressDesc );

        assertEquals( AddressComposite.class, addressDesc.type() );
    }

    public final void assemble( ModuleAssembly aModule )
        throws AssemblyException
    {
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.