Examples of Mixins


Examples of org.apache.tapestry5.annotations.Mixins

    }

    private void addMixinTypes(String fieldName, ClassTransformation transformation,
                               MutableEmbeddedComponentModel model)
    {
        Mixins annotation = transformation.getFieldAnnotation(fieldName, Mixins.class);

        if (annotation == null) return;

        for (String typeName : annotation.value())
        {
            String mixinClassName = resolver.resolveMixinTypeToClassName(typeName);
            model.addMixin(mixinClassName);
        }
    }
View Full Code Here

Examples of org.apache.tapestry5.annotations.Mixins

    }

    private void addMixinTypes(String fieldName, ClassTransformation transformation,
                               MutableEmbeddedComponentModel model)
    {
        Mixins annotation = transformation.getFieldAnnotation(fieldName, Mixins.class);

        if (annotation == null) return;

        for (String typeName : annotation.value())
        {
            String mixinClassName = resolver.resolveMixinTypeToClassName(typeName);
            model.addMixin(mixinClassName);
        }
    }
View Full Code Here

Examples of org.qi4j.api.mixin.Mixins

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

Examples of org.qi4j.api.mixin.Mixins

        Function<Type, Iterable<Class<?>>> function = new Function<Type, Iterable<Class<?>>>()
        {
            @Override
            public Iterable<Class<?>> map( Type type )
            {
                Mixins mixins = Annotations.annotationOn( type, Mixins.class );
                if( mixins == null )
                {
                    return empty();
                }
                else
                {
                    return iterable( mixins.value() );
                }
            }
        };
        Iterable<Class<?>> flatten = flattenIterables( map( function, allTypes ) );
        return toList( flatten );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.