Class DiscriminatedProperties<P>

java.lang.Object
com.broadleafcommerce.orderoperation.properties.DiscriminatedProperties<P>
Direct Known Subclasses:
OrderOperationPaymentProperties

public class DiscriminatedProperties<P> extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    CaseInsensitiveMap is used for the case when props are provided from the ENV as ENV props will be converted to lowercase by spring in case of UUID for app/tenant there can be a mismatch AbcD34E vs abcd45e, so case CaseInsensitiveMap addresses this issue
    protected <T> T
    getField(String fieldName, String applicationId, String tenantId, Class<T> type)
     
     
    void
    setApplication(Map<String,P> application)
    CaseInsensitiveMap is used for the case when props are provided from the ENV as ENV props will be converted to lowercase by spring in case of UUID for app/tenant there can be a mismatch AbcD34E vs abcd45e, so case CaseInsensitiveMap addresses this issue
    void
    setTenant(Map<String,P> tenant)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DiscriminatedProperties

      public DiscriminatedProperties()
  • Method Details

    • getField

      protected <T> T getField(String fieldName, String applicationId, String tenantId, Class<T> type)
    • getApplication

      public Map<String,P> getApplication()
      CaseInsensitiveMap is used for the case when props are provided from the ENV as ENV props will be converted to lowercase by spring in case of UUID for app/tenant there can be a mismatch AbcD34E vs abcd45e, so case CaseInsensitiveMap addresses this issue
    • setApplication

      public void setApplication(Map<String,P> application)
      CaseInsensitiveMap is used for the case when props are provided from the ENV as ENV props will be converted to lowercase by spring in case of UUID for app/tenant there can be a mismatch AbcD34E vs abcd45e, so case CaseInsensitiveMap addresses this issue
    • getTenant

      public Map<String,P> getTenant()
    • setTenant

      public void setTenant(Map<String,P> tenant)