Package io.moquette.broker.config
Class ResourceLoaderConfig
- java.lang.Object
-
- io.moquette.broker.config.IConfig
-
- io.moquette.broker.config.ResourceLoaderConfig
-
public class ResourceLoaderConfig extends IConfig
Configuration that loads config stream from aIResourceLoaderinstance.
-
-
Field Summary
-
Fields inherited from class io.moquette.broker.config.IConfig
DEFAULT_CONFIG
-
-
Constructor Summary
Constructors Constructor Description ResourceLoaderConfig(IResourceLoader resourceLoader)ResourceLoaderConfig(IResourceLoader resourceLoader, String configName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetProperty(String name)Same semantic of PropertiesStringgetProperty(String name, String defaultValue)Same semantic of PropertiesIResourceLoadergetResourceLoader()voidsetProperty(String name, String value)
-
-
-
Constructor Detail
-
ResourceLoaderConfig
public ResourceLoaderConfig(IResourceLoader resourceLoader)
-
ResourceLoaderConfig
public ResourceLoaderConfig(IResourceLoader resourceLoader, String configName)
-
-
Method Detail
-
setProperty
public void setProperty(String name, String value)
- Specified by:
setPropertyin classIConfig
-
getProperty
public String getProperty(String name)
Description copied from class:IConfigSame semantic of Properties- Specified by:
getPropertyin classIConfig- Parameters:
name- property name.- Returns:
- property value.
-
getProperty
public String getProperty(String name, String defaultValue)
Description copied from class:IConfigSame semantic of Properties- Specified by:
getPropertyin classIConfig- Parameters:
name- property name.defaultValue- default value to return in case the property doesn't exists.- Returns:
- property value.
-
getResourceLoader
public IResourceLoader getResourceLoader()
- Specified by:
getResourceLoaderin classIConfig
-
-