Class BeanMapperImplOrika

    • Field Detail

      • orika

        private ma.glasnost.orika.MapperFacade orika
    • Constructor Detail

      • BeanMapperImplOrika

        public BeanMapperImplOrika()
        The constructor.
    • Method Detail

      • setOrika

        @Inject
        public void setOrika​(ma.glasnost.orika.MapperFacade orika)
        Parameters:
        orika - the orika to set
      • map

        public <T> T map​(Object source,
                         Class<T> targetClass)
        Description copied from interface: BeanMapper
        Recursively converts the given source Object to the given target Class.
        Type Parameters:
        T - is the generic type to convert to.
        Parameters:
        source - is the object to convert.
        targetClass - is the Class reflecting the type to convert to.
        Returns:
        the converted object. Will be null if source is null.