Package io.tesler.core.service
Class ResponseFactory
- java.lang.Object
-
- io.tesler.core.service.ResponseFactory
-
@Service public class ResponseFactory extends Object
Factory for services creation
-
-
Constructor Summary
Constructors Constructor Description ResponseFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataResponseDTO
getDTOFromMap(Map<String,Object> map, Class<?> clazz, BusinessComponent bc)
DataResponseDTO
getDTOFromMapIgnoreBusinessErrors(Map<String,Object> map, Class<?> clazz, BusinessComponent bc)
Class
getDTOFromService(InnerBcDescription innerBcDescription)
Class
getEntityFromService(InnerBcDescription innerBcDescription)
Type[]
getResponseServiceParameters(InnerBcDescription innerBcDescription)
ResponseService
getService(InnerBcDescription innerBcDescription)
-
-
-
Method Detail
-
getService
public ResponseService getService(InnerBcDescription innerBcDescription)
- Parameters:
innerBcDescription
- information about BC;- Returns:
ResponseService
common interface implemented by all services working with the controller
-
getDTOFromMap
public DataResponseDTO getDTOFromMap(Map<String,Object> map, Class<?> clazz, BusinessComponent bc)
-
getDTOFromMapIgnoreBusinessErrors
public DataResponseDTO getDTOFromMapIgnoreBusinessErrors(Map<String,Object> map, Class<?> clazz, BusinessComponent bc)
-
getDTOFromService
public Class getDTOFromService(InnerBcDescription innerBcDescription)
-
getEntityFromService
public Class getEntityFromService(InnerBcDescription innerBcDescription)
-
getResponseServiceParameters
public Type[] getResponseServiceParameters(InnerBcDescription innerBcDescription)
-
-