Package org.cxbox.core.service
Class ResponseFactory
- java.lang.Object
-
- org.cxbox.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 org.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)ClassgetDTOFromService(InnerBcDescription innerBcDescription)ClassgetEntityFromService(InnerBcDescription innerBcDescription)Type[]getResponseServiceParameters(InnerBcDescription innerBcDescription)ResponseServicegetService(InnerBcDescription innerBcDescription)
-
-
-
Method Detail
-
getService
public ResponseService getService(InnerBcDescription innerBcDescription)
- Parameters:
innerBcDescription- information about BC;- Returns:
ResponseServicecommon 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
public Class getDTOFromService(InnerBcDescription innerBcDescription)
-
getEntityFromService
public Class getEntityFromService(InnerBcDescription innerBcDescription)
-
getResponseServiceParameters
public Type[] getResponseServiceParameters(InnerBcDescription innerBcDescription)
-
-