public final class ServiceConfigFactory extends Object implements ServiceConfigFactory
This class is designed to be the main interface between the service configuration information and the users of the information. When initialized the factory loads the configuration from the file system, allowing access to the information by others.
Constructor and Description |
---|
ServiceConfigFactory()
Private constructor.
|
Modifier and Type | Method and Description |
---|---|
Service[] |
getServices()
Returns an array of all the defined configuration information for the
Services.
|
void |
reload()
Reload the config from the default config file
|
public ServiceConfigFactory()
configFile
- The name of the configuration file.IOException
- Thrown if the specified config file cannot be readpublic void reload()
reload
in interface ServiceConfigFactory
IOException
- Thrown if the specified config file cannot be read/loadedIOException
- if any.public Service[] getServices()
getServices
in interface ServiceConfigFactory
Copyright © 2021. All rights reserved.