Package com.chillycheesy.modulo.modules
Class ModuleConfig
java.lang.Object
com.chillycheesy.modulo.modules.ModuleConfig
Represent the configuration of a module.
The attributes are made to be the same you put in your module.xml file (see
The attributes are made to be the same you put in your module.xml file (see
ModuleBuilder
for details)-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
The default name of the main page, by defaul it's set to "index" -
Constructor Summary
ConstructorsConstructorDescriptionModuleConfig(ModuleConfig config)
ModuleConfig(String name, String version, List<String> authors, List<String> dependencies, List<String> softDependencies, String main)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getMain()
getName()
void
setAuthors(List<String> authors)
void
setDependencies(List<String> dependencies)
void
void
void
setSoftDependencies(List<String> softDependencies)
void
setVersion(String version)
toString()
-
Field Details
-
DEFAULT_MAIN_PAGE_NAME
The default name of the main page, by defaul it's set to "index"- See Also:
- Constant Field Values
-
-
Constructor Details
-
ModuleConfig
public ModuleConfig(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 theModuleManager
version
- the actual version of your moduleauthors
- the list of persons that works on your moduledependencies
- the list of modules that your module need to work, the dependencies will be load before your module get load by theModuleLoader
(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)
-
ModuleConfig
-
ModuleConfig
public ModuleConfig()
-
-
Method Details
-
getName
-
setName
-
getVersion
-
setVersion
-
getAuthors
- Returns:
- the list of persons that work on this module
-
setAuthors
-
getDependencies
-
setDependencies
-
getSoftDependencies
-
setSoftDependencies
-
getMain
- Returns:
- the path of the main file in the jar of this module
-
setMain
-
equals
-
toString
-