3738394041424344
this.slingMapperFactory = slingMapperFactory; } public Mapper getMapper() { final Mapper mapper = slingMapperFactory.getMapper(); mapper.registerFieldProcessor(new ImageFieldProcessor()); return mapper; }
4142434445464748
* @return */ @Provides @ContextScoped public Mapper getMapper(MapperBuilder mapperBuilder) { ImageFieldProcessor imageProcessor = new ImageFieldProcessor(); return mapperBuilder.addDefaultSliceProcessors().addFieldProcessor(imageProcessor).build(); }