@author kreon
| 31 | * @author kreon |
| 32 | */ |
| 33 | public abstract class JnodeModule implements IEventHandler { |
| 34 | protected Properties properties; |
| 35 | |
| 36 | public JnodeModule(String configFile) throws JnodeModuleException { |
| 37 | File config = new File(configFile); |
| 38 | if (!(config.exists() && config.canRead())) { |
| 39 | throw new JnodeModuleException("Config file " + configFile + " unavailable"); |
| 40 | } |
| 41 | properties = new Properties(); |
| 42 | try { |
| 43 | properties.load(new FileInputStream(config)); |
| 44 | } catch (IOException e) { |
| 45 | throw new JnodeModuleException("Failed to load properties", e); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | public abstract void start(); |
| 50 | } |
nothing calls this directly
no outgoing calls
no test coverage detected