Package artemis.annotations

Examples of artemis.annotations.Mapper


        public static void config(Object target, World world) {
            try {
                Class<?> clazz = target.getClass();
                for(Field field : clazz.getDeclaredFields()) {
                    Mapper annotation = field.getAnnotation(Mapper.class);
                    if(annotation != null && Mapper.class.isAssignableFrom(Mapper.class)) {
                        ParameterizedType genericType = (ParameterizedType)field.getGenericType();
                        Class componentType = (Class)genericType.getActualTypeArguments()[0];

                        field.setAccessible(true);
View Full Code Here

TOP

Related Classes of artemis.annotations.Mapper

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.