@Override public EntityDeclaration withMixins( Class<?>... mixins ) { for( EntityDeclaration declaration : declarations ) { declaration.withMixins( mixins ); } return this; }
public void assemble( ModuleAssembly module ) throws AssemblyException { new EntityTestAssembler().assemble( module ); module.transients( FooComposite.class ).withMixins( CustomFooMixin.class ); module.entities( FooEntity.class ).withMixins( FooMixin.class ); }
@Override // START SNIPPET: assembly public void assemble( ModuleAssembly module ) throws AssemblyException { new UoWFileAssembler().assemble( module ); module.entities( TestedEntity.class ).withMixins( TestedFileLocatorMixin.class ); // END SNIPPET: assembly module.entities( TestedEntity.class ).setMetaInfo( tmpDir.getRoot() ); module.services( TestService.class ); new EntityTestAssembler().assemble( module ); new FileConfigurationAssembler().assemble( module ); // START SNIPPET: assembly } // END SNIPPET: assembly
@Override // START SNIPPET: assembly public void assemble( ModuleAssembly module ) throws AssemblyException { new UoWFileAssembler().assemble( module ); module.entities( TestedEntity.class ).withMixins( TestedFilesLocatorMixin.class ); // END SNIPPET: assembly module.entities( TestedEntity.class ).setMetaInfo( tmpDir.getRoot() ); module.services( TestService.class ); new EntityTestAssembler().assemble( module ); new FileConfigurationAssembler().assemble( module ); // START SNIPPET: assembly } // END SNIPPET: assembly