Class AttributeResolverServiceStrategy

All Implemented Interfaces:
Function<ApplicationContext,ServiceableComponent<AttributeResolver>>, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent

public class AttributeResolverServiceStrategy extends AbstractIdentifiableInitializableComponent implements Function<ApplicationContext,ServiceableComponent<AttributeResolver>>
Strategy for summoning up an AttributeResolverImpl from a populated ApplicationContext. We do this by finding all the configured AttributeDefinition and DataConnector beans and bunging them into the Attribute Resolver which we then initialize.
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • stripNulls

      private boolean stripNulls
      Whether to strip null attribute values.
    • suppressDisplayInformation

      private boolean suppressDisplayInformation
      Whether to attach DisplayInfo to attributes.
  • Constructor Details

    • AttributeResolverServiceStrategy

      public AttributeResolverServiceStrategy()
  • Method Details

    • isStripNulls

      public boolean isStripNulls()
      Do we strip nulls from attribute values.
      Returns whether to strip nulls from attribute values
    • setStripNulls

      public void setStripNulls(boolean doStripNulls)
      Sets whether to strip nulls from attribute values.
      doStripNulls - what to set
    • isSuppressDisplayInformation

      public boolean isSuppressDisplayInformation()
      Do we allow addition of Display Information?
      whether we are suppressing
    • setSuppressDisplayInformation

      @Deprecated(forRemoval=true, since="4.2") public void setSuppressDisplayInformation(boolean what)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Display Information should be consulted at point of use
      Set whether we suppress addition of Display Information.
      what - true if we suppress the addition.
    • apply

      @Nullable public ServiceableComponent<AttributeResolver> apply(@Nullable ApplicationContext appContext)
      Specified by:
      apply in interface Function<ApplicationContext,ServiceableComponent<AttributeResolver>>