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 the BusinessTypeAware interface for determination of the proper Business domain type to associate with a repository domain instance.
Author:
Jeff Fischer
  • Constructor Details

    • BusinessTypeAwareDomainMapperMember

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

    • 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.