Class ModuleInfo
java.lang.Object
org.tentackle.common.ModuleInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHook()Gets the module hook.Gets the module.intGets the module ordinal.
Higher values come first in module order.Gets the names of the required modules.
Modules requiredstaticare not included.Gets the URL path of the hook's module.voidsetOrdinal(int ordinal) Sets the ordinal.
Higher values come first in module order.toString()
-
Constructor Details
-
ModuleInfo
Creates a module info.- Parameters:
hook- the module hook- Throws:
TentackleRuntimeException- if the hook does not belong to a named module
-
-
Method Details
-
getHook
-
getUrlPath
-
getModule
-
getRequiredModuleNames
Gets the names of the required modules.
Modules requiredstaticare not included. Once the module has been sorted by theModuleSorter, the set contains only the names of required application modules, i.e., modules providing aModuleHook.- Returns:
- the directly required names
-
getOrdinal
public int getOrdinal()Gets the module ordinal.
Higher values come first in module order.- Returns:
- the ordinal
-
setOrdinal
public void setOrdinal(int ordinal) Sets the ordinal.
Higher values come first in module order.- Parameters:
ordinal- the ordinal
-
toString
-