Class BasicSettingSpecifierProviderFactory

java.lang.Object
net.solarnetwork.settings.support.BasicSettingSpecifierProviderFactory
All Implemented Interfaces:
SettingSpecifierProviderFactory

public class BasicSettingSpecifierProviderFactory extends Object implements SettingSpecifierProviderFactory
Basic implementation of SettingSpecifierProviderFactory.
Version:
1.0
Author:
matt
  • Constructor Details

    • BasicSettingSpecifierProviderFactory

      public BasicSettingSpecifierProviderFactory()
  • Method Details

    • getFactoryUid

      public String getFactoryUid()
      Description copied from interface: SettingSpecifierProviderFactory
      Get a unique, application-wide factory ID.

      This ID must be unique across all setting providers registered within the system.

      Specified by:
      getFactoryUid in interface SettingSpecifierProviderFactory
      Returns:
      unique ID
    • getDisplayName

      public String getDisplayName()
      Description copied from interface: SettingSpecifierProviderFactory
      Get a non-localized display name.
      Specified by:
      getDisplayName in interface SettingSpecifierProviderFactory
      Returns:
      non-localized display name
    • getMessageSource

      public org.springframework.context.MessageSource getMessageSource()
      Description copied from interface: SettingSpecifierProviderFactory
      Get a MessageSource to localize the setting text.

      This method can return null if the provider does not have any localized resources.

      Specified by:
      getMessageSource in interface SettingSpecifierProviderFactory
      Returns:
      the MessageSource, or null
    • setFactoryUid

      public void setFactoryUid(String factoryUid)
      Set the factory UID.
      Parameters:
      factoryUid - the UID to set
    • setDisplayName

      public void setDisplayName(String displayName)
      Set the display name.
      Parameters:
      displayName - the name to set
    • setMessageSource

      public void setMessageSource(org.springframework.context.MessageSource messageSource)
      Set the message source.
      Parameters:
      messageSource - the message source to set