LocalDependencySpecBuilder
, ModuleDependencySpecBuilder
public abstract class DependencySpecBuilder
extends java.lang.Object
Constructor | Description |
---|---|
DependencySpecBuilder() |
Construct a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
abstract DependencySpec |
build() |
Construct the dependency specification.
|
ClassFilter |
getClassExportFilter() |
Get the class export filter to use.
|
ClassFilter |
getClassImportFilter() |
Get the class import filter to use.
|
PathFilter |
getExportFilter() |
Get the export filter to use.
|
PathFilter |
getImportFilter() |
Get the import filter to use.
|
PathFilter |
getResourceExportFilter() |
Get the resource export filter to use.
|
PathFilter |
getResourceImportFilter() |
Get the resource import filter to use.
|
DependencySpecBuilder |
setClassExportFilter(ClassFilter classExportFilter) |
Set the class export filter to use.
|
DependencySpecBuilder |
setClassImportFilter(ClassFilter classImportFilter) |
Set the class import filter to use.
|
DependencySpecBuilder |
setExport(boolean export) |
Set a simple export filter, based on a
boolean flag. |
DependencySpecBuilder |
setExportFilter(PathFilter exportFilter) |
Set the export filter to use.
|
DependencySpecBuilder |
setImportFilter(PathFilter importFilter) |
Set the import filter to use.
|
DependencySpecBuilder |
setImportServices(boolean services) |
Set a simple import filter, based on a
boolean flag specifying whether services should be
imported. |
DependencySpecBuilder |
setResourceExportFilter(PathFilter resourceExportFilter) |
Set the resource export filter to use.
|
DependencySpecBuilder |
setResourceImportFilter(PathFilter resourceImportFilter) |
Set the resource import filter to use.
|
public PathFilter getImportFilter()
PathFilters.getDefaultImportFilter()
.public DependencySpecBuilder setImportFilter(PathFilter importFilter)
importFilter
- the import filter to use (must not be null
)public DependencySpecBuilder setImportServices(boolean services)
boolean
flag specifying whether services should be
imported. If the flag is true
, the import filter is set to PathFilters.getDefaultImportFilterWithServices()
,
otherwise it is set to PathFilters.getDefaultImportFilter()
. Any previous import filter setting is
overwritten.services
- the services flagpublic PathFilter getExportFilter()
PathFilters.rejectAll()
.public DependencySpecBuilder setExportFilter(PathFilter exportFilter)
exportFilter
- the export filter to use (must not be null
)public DependencySpecBuilder setExport(boolean export)
boolean
flag. If the flag is true
, the
export filter is set to PathFilters.acceptAll()
, otherwise it is set to PathFilters.rejectAll()
.
Any previous export filter setting is overwritten.export
- the export flagpublic PathFilter getResourceImportFilter()
PathFilters.acceptAll()
.public DependencySpecBuilder setResourceImportFilter(PathFilter resourceImportFilter)
resourceImportFilter
- the resource import filter to use (must not be null
)public PathFilter getResourceExportFilter()
PathFilters.acceptAll()
.public DependencySpecBuilder setResourceExportFilter(PathFilter resourceExportFilter)
PathFilters.acceptAll()
.resourceExportFilter
- the resource export filter to use (must not be null
)public ClassFilter getClassImportFilter()
ClassFilters.acceptAll()
.public DependencySpecBuilder setClassImportFilter(ClassFilter classImportFilter)
classImportFilter
- the class import filter to use (must not be null
)public ClassFilter getClassExportFilter()
ClassFilters.acceptAll()
.public DependencySpecBuilder setClassExportFilter(ClassFilter classExportFilter)
classExportFilter
- the class export filter to use (must not be null
)public abstract DependencySpec build()
Copyright © 2022 JBoss by Red Hat. All rights reserved.