Package org.qi4j.bootstrap

Examples of org.qi4j.bootstrap.EntityDeclaration


        for( ModuleAssemblyImpl moduleAssembly : moduleAssemblies.values() )
        {
            declarations.add( moduleAssembly.entities( specification ) );
        }

        return new EntityDeclaration()
        {
            @Override
            public EntityDeclaration setMetaInfo( Object info )
            {
                for( EntityDeclaration declaration : declarations )
View Full Code Here


    public void assemble( ModuleAssembly assembly )
        throws AssemblyException
    {
        assembly.services( ScheduleFactory.class );
        assembly.entities( Schedules.class );
        EntityDeclaration scheduleEntities = assembly.entities( CronSchedule.class, OnceSchedule.class );

        ValueDeclaration scheduleValues = assembly.values( CronSchedule.class, OnceSchedule.class );

        ServiceDeclaration schedulerDeclaration = assembly.services( SchedulerService.class )
            .visibleIn( visibility() )
            .instantiateOnStartup();

        if( timeline )
        {
            scheduleEntities.withTypes( Timeline.class )
                .withMixins( TimelineScheduleMixin.class )
                .withConcerns( TimelineForScheduleConcern.class );

            scheduleValues.withTypes( Timeline.class )
                .withMixins( TimelineScheduleMixin.class )
View Full Code Here

TOP

Related Classes of org.qi4j.bootstrap.EntityDeclaration

Copyright © 2018 www.massapicom. 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.