Package com.calebleavell.jatui.modules
Class ContainerModule
java.lang.Object
com.calebleavell.jatui.modules.TUIModule
com.calebleavell.jatui.modules.ContainerModule
Not only does this class improve modularity by housing other modules,
but it also provides a template for extending TUIGenericModule.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class com.calebleavell.jatui.modules.TUIModule
TUIModule.Property -
Field Summary
Fields inherited from class com.calebleavell.jatui.modules.TUIModule
DEFAULT_SCANNER, logger, restart, UNNAMED_ERROR -
Constructor Summary
ConstructorsConstructorDescriptionContainerModule(TUIModule.Builder<?> builder) Builds a ContainerModule based on the state ofbuilder -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerModule.BuilderConstructs a newContainerModulebuilder.voidSimply logs the run and calls the super-method provided byTUIModule.start().Methods inherited from class com.calebleavell.jatui.modules.TUIModule
getAnsi, getAnsiEnabled, getApplication, getChild, getChild, getChildren, getCurrentRunningBranch, getCurrentRunningChild, getCurrentRunningChild, getName, getPrintStream, getScanner, navigateTo, restart, restartChild, shallowStructuralEquals, start, structuralEquals, terminate, terminateChild, toString, toTreeString, toTreeString
-
Constructor Details
-
ContainerModule
Builds a ContainerModule based on the state ofbuilder- Parameters:
builder- TheContainerModule.Builderthat is building the application module.
-
-
Method Details
-
doRunLogic
public void doRunLogic()Simply logs the run and calls the super-method provided byTUIModule.start().- Specified by:
doRunLogicin classTUIModule
-
builder
Constructs a newContainerModulebuilder.- Parameters:
name- The name of the builder.- Returns:
- The new builder.
-