Package org.qi4j.api.activation

Examples of org.qi4j.api.activation.Activators


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

TOP

Related Classes of org.qi4j.api.activation.Activators

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.