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 newControllerConfiguration)Create new instance ofLightyControllerBuilderfromControllerConfiguration.LightyControllerBuilderwithExecutorService(ExecutorService newExecutorService)Inject executor service to execute futures.
-
-
-
Method Detail
-
from
public LightyControllerBuilder from(ControllerConfiguration newControllerConfiguration)
Create new instance ofLightyControllerBuilderfromControllerConfiguration.- Parameters:
newControllerConfiguration- input Lighty Controller configuration.- Returns:
- instance of
LightyControllerBuilder.
-
withExecutorService
public LightyControllerBuilder withExecutorService(ExecutorService newExecutorService)
Inject executor service to execute futures.- Parameters:
newExecutorService- - 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.
-
-