Class ConfigurationSample
java.lang.Object
br.net.dd.netherwingcore.common.configuration.ConfigurationSample
- Direct Known Subclasses:
BnetConfigSample
This abstract class represents a sample configuration that can be used to initialize the application's
Configuration.
Subclasses of ConfigurationSample should provide specific implementations for loading and saving configuration data,
as well as defining the structure of the configuration file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the configuration object associated with this sample.Retrieves the file name associated with this configuration.voidsetConfiguration(Configuration configuration) Sets the configuration object associated with this sample.voidsetFileName(String fileName) Sets the file name associated with this configuration.
-
Constructor Details
-
ConfigurationSample
public ConfigurationSample()
-
-
Method Details
-
getFileName
Retrieves the file name associated with this configuration.- Returns:
- the file name as a
String.
-
setFileName
Sets the file name associated with this configuration.- Parameters:
fileName- the file name to set as aString.
-
getConfiguration
Retrieves the configuration object associated with this sample.- Returns:
- the
Configurationinstance.
-
setConfiguration
Sets the configuration object associated with this sample.- Parameters:
configuration- theConfigurationinstance to set.
-