Class BusinessTypeAwareDomainMapperMember

  • All Implemented Interfaces:
    com.broadleafcommerce.common.extension.data.DataRoutePartitionAware, DomainMapper, DomainMapperMember, org.springframework.core.Ordered

    public class BusinessTypeAwareDomainMapperMember
    extends Object
    implements DomainMapperMember
    Support the BusinessTypeAware interface for determination of the proper Business domain type to associate with a repository domain instance.
    Author:
    Jeff Fischer
    • Constructor Detail

      • BusinessTypeAwareDomainMapperMember

        public BusinessTypeAwareDomainMapperMember​(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
    • Method Detail

      • getDataRoutePartition

        public String getDataRoutePartition()
        Specified by:
        getDataRoutePartition in interface com.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 interface DomainMapper
        Parameters:
        repositoryDomain - The persistence domain instance to inspect
        Returns:
        The type of the associated business domain. Return null is not supported.