Class BusinessTypeAwareDomainMapperMember
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAwareDomainMapperMember
-
- All Implemented Interfaces:
com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
,DomainMapper
,DomainMapperMember
,org.springframework.core.Ordered
public class BusinessTypeAwareDomainMapperMember extends Object implements DomainMapperMember
Support theBusinessTypeAware
interface for determination of the proper Business domain type to associate with a repository domain instance.- Author:
- Jeff Fischer
-
-
Constructor Summary
Constructors Constructor Description BusinessTypeAwareDomainMapperMember(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Object>
getBusinessDomainType(Object repositoryDomain)
Ascertain the correct business domain type based on an instance of the repository domainString
getDataRoutePartition()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.DomainMapper
deleteMap, modifyMap
-
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.DomainMapperMember
fromBusinessDomain, fromRepositoryDomain, getOrder
-
-
-
-
Method Detail
-
getDataRoutePartition
public String getDataRoutePartition()
- Specified by:
getDataRoutePartition
in interfacecom.broadleafcommerce.common.extension.data.DataRoutePartitionAware
-
getBusinessDomainType
public Class<Object> getBusinessDomainType(Object repositoryDomain)
Description copied from interface:DomainMapper
Ascertain the correct business domain type based on an instance of the repository domain- Specified by:
getBusinessDomainType
in interfaceDomainMapper
- Parameters:
repositoryDomain
- The persistence domain instance to inspect- Returns:
- The type of the associated business domain. Return null is not supported.
-
-