Package io.lighty.core.controller.impl
Class LightyControllerBuilder
- java.lang.Object
-
- io.lighty.core.controller.impl.LightyControllerBuilder
-
public class LightyControllerBuilder extends Object
Builder forLightyController.
-
-
Constructor Summary
Constructors Constructor Description LightyControllerBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LightyControllerbuild()Build newLightyControllerinstance fromLightyControllerBuilder.LightyControllerBuilderfrom(ControllerConfiguration controllerConfiguration)Create new instance ofLightyControllerBuilderfromControllerConfiguration.LightyControllerBuilderwithExecutorService(ExecutorService executorService)Inject executor service to execute futures
-
-
-
Method Detail
-
from
public LightyControllerBuilder from(ControllerConfiguration controllerConfiguration)
Create new instance ofLightyControllerBuilderfromControllerConfiguration.- Parameters:
controllerConfiguration- input Lighty Controller configuration.- Returns:
- instance of
LightyControllerBuilder.
-
withExecutorService
public LightyControllerBuilder withExecutorService(ExecutorService executorService)
Inject executor service to execute futures- Parameters:
executorService- - executor- Returns:
- instance of
LightyControllerBuilder.
-
build
public LightyController build() throws ConfigurationException
Build newLightyControllerinstance fromLightyControllerBuilder.- Returns:
- instance of LightyController.
- Throws:
ConfigurationException- if cannot find yang model artifacts.
-
-