Package fr.Alphart.BAT.Modules
Interface IModule
public interface IModule
-
Field Summary
-
Method Summary
-
Field Details
-
NO_REASON
- See Also:
-
GLOBAL_SERVER
- See Also:
-
ANY_SERVER
- See Also:
-
ON_STATE
-
OFF_STATE
-
-
Method Details
-
getName
String getName() -
load
boolean load()Load the module- Returns:
- true if everything's ok otherwise false
-
getConfig
ModuleConfiguration getConfig()Get the configuration section of this module- Returns:
- configuration section of this module
-
unload
boolean unload()Unload the module- Returns:
- true if everything's ok otherwise false
-
getMainCommand
String getMainCommand()Get main command name- Returns:
- name of the main command without a slash
-
getCommands
List<BATCommand> getCommands()Get commands used by this module- Returns:
- list of commands
-