Class ModuleDependency.Builder
java.lang.Object
org.wildfly.testing.tools.modules.ModuleDependency.Builder
- Enclosing class:
ModuleDependency
Builds a module dependency.
- Author:
- James R. Perkins
-
Method Summary
Modifier and TypeMethodDescriptionaddExportFilter(String path, boolean include) Adds an export filter for the dependency.Adds an export filter for the dependency.Adds the filters as export filters for the dependency.addExportFilters(ModuleDependency.Filter... filters) Adds the filters as export filters for the dependency.addImportFilter(String path, boolean include) Adds an import filter for the dependency.Adds an import filter for the dependency.Adds the filters as import filters for the dependency.addImportFilters(ModuleDependency.Filter... filters) Adds the filters as import filters for the dependency.build()Creates the module dependency.export(boolean export) Whether the dependency should be exported or not.optional(boolean optional) Whether the dependency should be optional or not.services(ModuleDependency.Services services) Define the value for the dependenciesservicesattribute.
-
Method Details
-
optional
Whether the dependency should be optional or not.- Parameters:
optional-trueif the dependency should be optional- Returns:
- this builder
-
export
Whether the dependency should be exported or not.- Parameters:
export-trueif the dependency should be exported- Returns:
- this builder
-
services
Define the value for the dependenciesservicesattribute.- Parameters:
services- the value for the service attribute- Returns:
- this builder
-
addImportFilter
Adds an import filter for the dependency.- Parameters:
filter- the import filter- Returns:
- this builder
-
addImportFilter
Adds an import filter for the dependency.- Parameters:
path- the path to filterinclude-trueif the path should be included,falseif the path should be excluded- Returns:
- this builder
-
addImportFilters
Adds the filters as import filters for the dependency.- Parameters:
filters- the filters to add- Returns:
- this builder
-
addImportFilters
Adds the filters as import filters for the dependency.- Parameters:
filters- the filters to add- Returns:
- this builder
-
addExportFilter
Adds an export filter for the dependency.- Parameters:
filter- the export filter- Returns:
- this builder
-
addExportFilter
Adds an export filter for the dependency.- Parameters:
path- the path to filterinclude-trueif the path should be included,falseif the path should be excluded- Returns:
- this builder
-
addExportFilters
Adds the filters as export filters for the dependency.- Parameters:
filters- the filters to add- Returns:
- this builder
-
addExportFilters
Adds the filters as export filters for the dependency.- Parameters:
filters- the filters to add- Returns:
- this builder
-
build
Creates the module dependency.- Returns:
- the module dependency
-