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 newLightyController
instance fromLightyControllerBuilder
.from
(ControllerConfiguration newControllerConfiguration) Create new instance ofLightyControllerBuilder
fromControllerConfiguration
.withExecutorService
(ExecutorService newExecutorService) Inject executor service to execute futures.
-
Constructor Details
-
LightyControllerBuilder
public LightyControllerBuilder()
-
-
Method Details
-
from
Create new instance ofLightyControllerBuilder
fromControllerConfiguration
.- 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 newLightyController
instance fromLightyControllerBuilder
.- Returns:
- instance of LightyController.
- Throws:
ConfigurationException
- if cannot find yang model artifacts.
-