Package io.lighty.core.controller.impl
Class LightyControllerBuilder
java.lang.Object
io.lighty.core.controller.impl.LightyControllerBuilder
Builder for
LightyController.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build newLightyControllerinstance fromLightyControllerBuilder.from(ControllerConfiguration newControllerConfiguration) Create new instance ofLightyControllerBuilderfromControllerConfiguration.withExecutorService(ExecutorService newExecutorService) Inject executor service to execute futures.
-
Constructor Details
-
LightyControllerBuilder
public LightyControllerBuilder()
-
-
Method Details
-
from
Create new instance ofLightyControllerBuilderfromControllerConfiguration.- Parameters:
newControllerConfiguration- input Lighty Controller configuration.- Returns:
- instance of
LightyControllerBuilder.
-
withExecutorService
Inject executor service to execute futures.- Parameters:
newExecutorService- - executor- Returns:
- instance of
LightyControllerBuilder.
-
build
Build newLightyControllerinstance fromLightyControllerBuilder.- Returns:
- instance of LightyController.
- Throws:
ConfigurationException- if cannot find yang model artifacts.
-