Package com.cognifide.slice.mapper.annotation

Examples of com.cognifide.slice.mapper.annotation.MappingStrategy


      return cachedMapperStrategy;
    }

    SliceResource sliceResource = type.getAnnotation(SliceResource.class);
    if (sliceResource != null) {
      final MappingStrategy mappingStrategy = sliceResource.value();
      MapperStrategy mapperStrategy = getStrategy(mappingStrategy, defaultStrategy);
      putStrategyIntoCache(type, mapperStrategy);
      return mapperStrategy;
    }
View Full Code Here


   */
  public MapperStrategy getMapperStrategy(Class<?> type) {
    MapperStrategy defaultStrategy = annotatedFieldMapperStrategy;
    SliceResource sliceResource = type.getAnnotation(SliceResource.class);
    if (sliceResource != null) {
      final MappingStrategy mappingStrategy = sliceResource.value();
      return getStrategy(mappingStrategy, defaultStrategy);
    }
    return defaultStrategy;
  }
View Full Code Here

TOP

Related Classes of com.cognifide.slice.mapper.annotation.MappingStrategy

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.