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 SummaryConstructors Constructor Description LightyControllerBuilder()
 - 
Method SummaryAll 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- 
frompublic LightyControllerBuilder from(ControllerConfiguration newControllerConfiguration) Create new instance ofLightyControllerBuilderfromControllerConfiguration.- Parameters:
- newControllerConfiguration- input Lighty Controller configuration.
- Returns:
- instance of LightyControllerBuilder.
 
 - 
withExecutorServicepublic LightyControllerBuilder withExecutorService(ExecutorService newExecutorService) Inject executor service to execute futures.- Parameters:
- newExecutorService- - executor
- Returns:
- instance of LightyControllerBuilder.
 
 - 
buildpublic LightyController build() throws ConfigurationException Build newLightyControllerinstance fromLightyControllerBuilder.- Returns:
- instance of LightyController.
- Throws:
- ConfigurationException- if cannot find yang model artifacts.
 
 
- 
 
-