Package com.director.core.annotation

Examples of com.director.core.annotation.DirectResult.excludes()


         if(directMethod.hasResultAnnotation()) {
            DirectResult directResult = directMethod.getResultAnnotation();
            for(Pattern pattern : directResult.includes()) {
               gsonBuilder.registerTypeAdapter(pattern.type(), new IncludeFieldsTypeAdapter(pattern.fields()));
            }
            for(Pattern pattern : directResult.excludes()) {
               gsonBuilder.registerTypeAdapter(pattern.type(), new ExcludeFieldsTypeAdapter(pattern.fields()));
            }
            for(Serializer serializer : directResult.serializers()) {
               if(serializer.hierarchy()) {
                  gsonBuilder.registerTypeHierarchyAdapter(serializer.type(), serializer.impl().newInstance());
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.