Class ModuleDependency.Builder
- java.lang.Object
-
- org.wildfly.testing.tools.modules.ModuleDependency.Builder
-
- Enclosing class:
- ModuleDependency
public static class ModuleDependency.Builder extends Object
Builds a module dependency.- Author:
- James R. Perkins
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModuleDependency.BuilderaddExportFilter(String path, boolean include)Adds an export filter for the dependency.ModuleDependency.BuilderaddExportFilter(ModuleDependency.Filter filter)Adds an export filter for the dependency.ModuleDependency.BuilderaddExportFilters(Collection<ModuleDependency.Filter> filters)Adds the filters as export filters for the dependency.ModuleDependency.BuilderaddExportFilters(ModuleDependency.Filter... filters)Adds the filters as export filters for the dependency.ModuleDependency.BuilderaddImportFilter(String path, boolean include)Adds an import filter for the dependency.ModuleDependency.BuilderaddImportFilter(ModuleDependency.Filter filter)Adds an import filter for the dependency.ModuleDependency.BuilderaddImportFilters(Collection<ModuleDependency.Filter> filters)Adds the filters as import filters for the dependency.ModuleDependency.BuilderaddImportFilters(ModuleDependency.Filter... filters)Adds the filters as import filters for the dependency.ModuleDependencybuild()Creates the module dependency.ModuleDependency.Builderexport(boolean export)Whether the dependency should be exported or not.ModuleDependency.Builderoptional(boolean optional)Whether the dependency should be optional or not.ModuleDependency.Builderservices(ModuleDependency.Services services)Define the value for the dependenciesservicesattribute.
-
-
-
Method Detail
-
optional
public ModuleDependency.Builder optional(boolean optional)
Whether the dependency should be optional or not.- Parameters:
optional-trueif the dependency should be optional- Returns:
- this builder
-
export
public ModuleDependency.Builder export(boolean export)
Whether the dependency should be exported or not.- Parameters:
export-trueif the dependency should be exported- Returns:
- this builder
-
services
public ModuleDependency.Builder services(ModuleDependency.Services services)
Define the value for the dependenciesservicesattribute.- Parameters:
services- the value for the service attribute- Returns:
- this builder
-
addImportFilter
public ModuleDependency.Builder addImportFilter(ModuleDependency.Filter filter)
Adds an import filter for the dependency.- Parameters:
filter- the import filter- Returns:
- this builder
-
addImportFilter
public ModuleDependency.Builder addImportFilter(String path, boolean include)
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
public ModuleDependency.Builder addImportFilters(ModuleDependency.Filter... filters)
Adds the filters as import filters for the dependency.- Parameters:
filters- the filters to add- Returns:
- this builder
-
addImportFilters
public ModuleDependency.Builder addImportFilters(Collection<ModuleDependency.Filter> filters)
Adds the filters as import filters for the dependency.- Parameters:
filters- the filters to add- Returns:
- this builder
-
addExportFilter
public ModuleDependency.Builder addExportFilter(ModuleDependency.Filter filter)
Adds an export filter for the dependency.- Parameters:
filter- the export filter- Returns:
- this builder
-
addExportFilter
public ModuleDependency.Builder addExportFilter(String path, boolean include)
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
public ModuleDependency.Builder addExportFilters(ModuleDependency.Filter... filters)
Adds the filters as export filters for the dependency.- Parameters:
filters- the filters to add- Returns:
- this builder
-
addExportFilters
public ModuleDependency.Builder addExportFilters(Collection<ModuleDependency.Filter> filters)
Adds the filters as export filters for the dependency.- Parameters:
filters- the filters to add- Returns:
- this builder
-
build
public ModuleDependency build()
Creates the module dependency.- Returns:
- the module dependency
-
-