java.lang.Object
io.inverno.core.v1.Module.ModuleBuilder<T>
- Type Parameters:
T- the module type to build.
- Direct Known Subclasses:
Base.Builder,Base.Builder,Base.Builder,Boot.Builder,Client.Builder,Client.Builder,Client.Builder,Http.Builder,Jose.Builder,K8s.Builder,Ldap.Builder,Lettuce.Builder,Meta.Builder,Server.Builder,Server.Builder,Server.Builder,Vertx.Builder
- Enclosing class:
Module
The Module Builder base class.
All module have to be built by a builder.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ModuleBuilder
Creates a new Module Builder.
- Parameters:
nonOptionalSockets- an even list of non-optional sockets pairs (name, value) required to build the module- Throws:
IllegalArgumentException- if one or more non-optional sockets are null
-
-
Method Details
-
build
Builds the module.
This method actually delegates the actual module creation to the
doBuild()method.- Returns:
- a new module instance
-
doBuild
This method should be implemented by concrete implementation to return the actual module instance.
- Returns:
- a new module instance
-