Package org.qi4j.api.concern

Examples of org.qi4j.api.concern.Concerns


        }

        // Check annotations on method that have @Concerns annotations themselves
        for( Annotation annotation : method.getAnnotations() )
        {
            Concerns concerns = annotation.annotationType().getAnnotation( Concerns.class );
            if ( concerns != null )
            {
                for( Class<?> concern : concerns.value() )
                {
                    if( helper.appliesTo( concern, method, compositeType, mixinClass ) )
                    {
                        concernsFor.add( helper.getConcernModel( concern ) );
                    }
View Full Code Here


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

        }

        // Check annotations on method that have @Concerns annotations themselves
        for( Annotation annotation : method.getAnnotations() )
        {
            @SuppressWarnings( "raw" )
            Concerns concerns = annotation.annotationType().getAnnotation( Concerns.class );
            if( concerns != null )
            {
                for( Class<?> concern : concerns.value() )
                {
                    if( helper.appliesTo( concern, method, types, mixinClass ) )
                    {
                        concernsFor.add( helper.getConcernModel( concern ) );
                    }
View Full Code Here

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

TOP

Related Classes of org.qi4j.api.concern.Concerns

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.