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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a non-localized display name.Get a unique, application-wide factory ID.org.springframework.context.MessageSourceGet a MessageSource to localize the setting text.voidsetDisplayName(String displayName) Set the display name.voidsetFactoryUid(String factoryUid) Set the factory UID.voidsetMessageSource(org.springframework.context.MessageSource messageSource) Set the message source.
-
Constructor Details
-
BasicSettingSpecifierProviderFactory
public BasicSettingSpecifierProviderFactory()
-
-
Method Details
-
getFactoryUid
Description copied from interface:SettingSpecifierProviderFactoryGet a unique, application-wide factory ID.This ID must be unique across all setting providers registered within the system.
- Specified by:
getFactoryUidin interfaceSettingSpecifierProviderFactory- Returns:
- unique ID
-
getDisplayName
Description copied from interface:SettingSpecifierProviderFactoryGet a non-localized display name.- Specified by:
getDisplayNamein interfaceSettingSpecifierProviderFactory- Returns:
- non-localized display name
-
getMessageSource
public org.springframework.context.MessageSource getMessageSource()Description copied from interface:SettingSpecifierProviderFactoryGet a MessageSource to localize the setting text.This method can return null if the provider does not have any localized resources.
- Specified by:
getMessageSourcein interfaceSettingSpecifierProviderFactory- Returns:
- the MessageSource, or null
-
setFactoryUid
Set the factory UID.- Parameters:
factoryUid- the UID to set
-
setDisplayName
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
-