Package org.qi4j.api.sideeffect

Examples of org.qi4j.api.sideeffect.SideEffects


        return Iterables.toList( Iterables.flattenIterables( Iterables.map( new Function<Type, Iterable<Class<?>>>()
        {
            @Override
            public Iterable<Class<?>> map( Type type )
            {
                SideEffects sideEffects = Annotations.getAnnotation( type, SideEffects.class );
                if( sideEffects == null )
                    return Iterables.empty();
                else
                    return iterable( sideEffects.value() );
            }
        }, types ) ) );
    }
View Full Code Here


        Function<Type, Iterable<Class<?>>> function = new Function<Type, Iterable<Class<?>>>()
        {
            @Override
            public Iterable<Class<?>> map( Type type )
            {
                SideEffects sideEffects = Annotations.annotationOn( type, SideEffects.class );
                if( sideEffects == null )
                {
                    return empty();
                }
                else
                {
                    return iterable( sideEffects.value() );
                }
            }
        };
        Iterable<Class<?>> flatten = flattenIterables( map( function, allTypes ) );
        return toList( flatten );
View Full Code Here

TOP

Related Classes of org.qi4j.api.sideeffect.SideEffects

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.