Class Module.Builder
java.lang.Object
org.wildfly.test.security.common.elytron.AbstractConfigurableElement.Builder<Module.Builder>
org.wildfly.test.security.common.elytron.Module.Builder
- Enclosing class:
- Module
public static final class Module.Builder
extends AbstractConfigurableElement.Builder<Module.Builder>
Builder to build a module registration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build an instance ofModuleprotected Module.Builderself()withDependency(String dependency) Add a dependency to be referenced by the module.withResource(String resource) Add a resource to be referenced by the module.Methods inherited from class org.wildfly.test.security.common.elytron.AbstractConfigurableElement.Builder
withName
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withResource
Add a resource to be referenced by the module.- Parameters:
resource- a resource to be referenced by the module.- Returns:
- this
Module.Builderto allow method chaining.
-
withDependency
Add a dependency to be referenced by the module.- Parameters:
dependency- a dependency to be referenced by the module.- Returns:
- this
Module.Builderto allow method chaining.
-
build
Build an instance ofModule- Returns:
- an instance of
Module
-
self
- Specified by:
selfin classAbstractConfigurableElement.Builder<Module.Builder>
-