Package org.cxbox.core.service
Class AnySourceResponseFactory
java.lang.Object
org.cxbox.core.service.AnySourceResponseFactory
Factory for services creation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.cxbox.api.data.dto.DataResponseDTOgetDTOFromMap(Map<String, Object> map, Class<?> clazz, BusinessComponent bc) org.cxbox.api.data.dto.DataResponseDTOgetDTOFromMapIgnoreBusinessErrors(Map<String, Object> map, Class<?> clazz, BusinessComponent bc) getDTOFromService(AnySourceBcDescription anySourceBcDescription) Type[]getResponseServiceParameters(AnySourceBcDescription anySourceBcDescription) getService(AnySourceBcDescription anySourceBcDescription)
-
Constructor Details
-
AnySourceResponseFactory
public AnySourceResponseFactory()
-
-
Method Details
-
getService
- Parameters:
anySourceBcDescription- information about BC;- Returns:
AnySourceResponseServicecommon interface implemented by all services working with the controller
-
getDTOFromMap
public org.cxbox.api.data.dto.DataResponseDTO getDTOFromMap(Map<String, Object> map, Class<?> clazz, BusinessComponent bc) -
getDTOFromMapIgnoreBusinessErrors
public org.cxbox.api.data.dto.DataResponseDTO getDTOFromMapIgnoreBusinessErrors(Map<String, Object> map, Class<?> clazz, BusinessComponent bc) -
getDTOFromService
-
getResponseServiceParameters
-