Package io.lighty.core.controller.api
Interface LightyModule
- 
- All Known Subinterfaces:
- LightyController
 - All Known Implementing Classes:
- AbstractLightyModule,- LightyControllerImpl
 
 public interface LightyModuleThis is common interface for all Lighty modules. Main Lighty components are modules. There is only one core moduleLightyControllerand other modules depend on this module. Typically, module is north-bound plugin or south-bound plugin, or any logical component of Lighty application using services provided by core module.- Author:
- juraj.veverka
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<Boolean>shutdown()Shutdown module.com.google.common.util.concurrent.ListenableFuture<Boolean>start()Start in background and return immediately.voidstartBlocking()Start and block until shutdown is requested.
 
- 
- 
- 
Method Detail- 
startcom.google.common.util.concurrent.ListenableFuture<Boolean> start() Start in background and return immediately.- Returns:
- true if module initialization was successful, false or exception otherwise.
 
 - 
startBlockingvoid startBlocking() throws InterruptedExceptionStart and block until shutdown is requested.- Throws:
- InterruptedException- thrown in case module initialization fails.
 
 
- 
 
-