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
Support the
BusinessTypeAware
interface for determination of the proper Business domain
type to associate with a repository domain instance.- Author:
- Jeff Fischer
-
Field Summary
Fields inherited from interface com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
ALL_MATCH
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionBusinessTypeAwareDomainMapperMember
(com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetBusinessDomainType
(Object repositoryDomain) Ascertain the correct business domain type based on an instance of the repository domainMethods 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
-
Constructor Details
-
BusinessTypeAwareDomainMapperMember
public BusinessTypeAwareDomainMapperMember(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
getDataRoutePartition
- Specified by:
getDataRoutePartition
in interfacecom.broadleafcommerce.common.extension.data.DataRoutePartitionAware
-
getBusinessDomainType
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.
-