Class BasicFactorySettingSpecifierProvider
java.lang.Object
net.solarnetwork.settings.support.BasicFactorySettingSpecifierProvider
- All Implemented Interfaces:
FactorySettingSpecifierProvider,SettingSpecifierProvider
public class BasicFactorySettingSpecifierProvider
extends Object
implements FactorySettingSpecifierProvider
Basic implementation of
FactorySettingSpecifierProvider that
delegates all SettingSpecifierProvider methods to a delegate.- Version:
- 1.0
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionBasicFactorySettingSpecifierProvider(String factoryInstanceUID, SettingSpecifierProvider delegate) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet a non-localized display name.Get the factory-wide unique ID for this provider.org.springframework.context.MessageSourceGet a MessageSource to localize the setting text.Get a list ofSettingSpecifierinstances.Get a unique, application-wide setting ID.
-
Constructor Details
-
BasicFactorySettingSpecifierProvider
public BasicFactorySettingSpecifierProvider(String factoryInstanceUID, SettingSpecifierProvider delegate) Constructor.- Parameters:
factoryInstanceUID- the factory instance UIDdelegate- the delegate
-
-
Method Details
-
getSettingUid
Description copied from interface:SettingSpecifierProviderGet a unique, application-wide setting ID.This ID must be unique across all setting providers registered within the system.
- Specified by:
getSettingUidin interfaceSettingSpecifierProvider- Returns:
- unique ID
-
getDisplayName
Description copied from interface:SettingSpecifierProviderGet a non-localized display name.- Specified by:
getDisplayNamein interfaceSettingSpecifierProvider- Returns:
- non-localized display name
-
getMessageSource
public org.springframework.context.MessageSource getMessageSource()Description copied from interface:SettingSpecifierProviderGet a MessageSource to localize the setting text.This method can return null if the provider does not have any localized resources.
- Specified by:
getMessageSourcein interfaceSettingSpecifierProvider- Returns:
- the MessageSource, or null
-
getSettingSpecifiers
Description copied from interface:SettingSpecifierProviderGet a list ofSettingSpecifierinstances.- Specified by:
getSettingSpecifiersin interfaceSettingSpecifierProvider- Returns:
- list of
SettingSpecifier
-
getFactoryInstanceUID
Description copied from interface:FactorySettingSpecifierProviderGet the factory-wide unique ID for this provider.- Specified by:
getFactoryInstanceUIDin interfaceFactorySettingSpecifierProvider- Returns:
- the factory-wide unique ID
-