Class ModuleAdapter

All Implemented Interfaces:
ModuloEntity

public class ModuleAdapter extends Module
HTModuleAdapter is just a Module with a default implementation of the onLoad() onStart() onStop() methods.
You can extend of this class to create your module but you'll have to override those methods by yourself (override those method if you need them)
  • Constructor Details

    • ModuleAdapter

      public ModuleAdapter(String name, String version, List<String> authors, List<String> dependencies, List<String> softDependencies, String main)
      Parameters:
      name - it's how your HTModule will be call by HomeTracker
      note that two HTModules can't have the same name (you won't be able to add it to the ModuleManager
      version - the actual version of your module
      authors - the list of persons that works on your module
      dependencies - the list of modules that your module need to work, the dependencies will be load before your module get load by the ModuleLoader (your module cannot load without them)
      softDependencies - the list of modules that your module can use to work with but without being an obligation (your module can load without them)
      main - the main file of your jar (example: com.dev.MyAwesomeModule)
    • ModuleAdapter

      public ModuleAdapter(ModuleConfig config)
      Init your module by passing the ModuleConfig object
      Parameters:
      config - the configuration of your module
    • ModuleAdapter

      public ModuleAdapter()
  • Method Details