public ServerConfiguration(File configurationURL) throws ConfigurationException
{
this(parseConfig(configurationURL));
_configFile = configurationURL;
SignalHandlerTask hupReparseTask = new SignalHandlerTask()
{
public void handle()
{
try
{
reparseConfigFileSecuritySections();
}
catch (ConfigurationException e)
{
_logger.error("Could not reload configuration file security sections", e);
}
}
};
if(!hupReparseTask.register("HUP"))
{
_logger.info("Unable to register Signal HUP handler to reload security configuration.");
_logger.info("Signal HUP not supported for this OS / JVM combination - " + SignalHandlerTask.getPlatformDescription());
}
}