Class ConfigLoader
- java.lang.Object
-
- org.forgerock.openam.radius.server.config.ConfigLoader
-
public class ConfigLoader extends Object
Loads configuration values from openam's admin console maintained values into pojos and registers a change listener for changes that may happen in the future .
-
-
Constructor Summary
Constructors Constructor Description ConfigLoader(ServiceConfigManager serviceConfigManager)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RadiusServiceConfigloadConfig()Loads the configured global RADIUS Service values and declared clients as specified in openAM's admin console via registration of those properties via the amRadiusServer.xml file.
-
-
-
Constructor Detail
-
ConfigLoader
@Inject public ConfigLoader(@Named("RadiusServer") ServiceConfigManager serviceConfigManager)Constructor.- Parameters:
serviceConfigManager- - Service config manager from which RADIUS Server config may be loaded.
-
-
Method Detail
-
loadConfig
public RadiusServiceConfig loadConfig()
Loads the configured global RADIUS Service values and declared clients as specified in openAM's admin console via registration of those properties via the amRadiusServer.xml file. We load them here into simple pojos for caching in memory. If we are unable to do so this method will return a null value.- Returns:
- an object containing the configuration parameters for the radius service, or null if the config can't be loaded.
-
-