public final class LocalDependencySpecBuilder extends DependencySpecBuilder
Constructor | Description |
---|---|
LocalDependencySpecBuilder() |
Construct a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
DependencySpec |
build() |
Construct the dependency specification.
|
PathFilter |
getImportFilter() |
Get the import filter to use.
|
Set<String> |
getLoaderPaths() |
Get the loader paths set.
|
LocalLoader |
getLocalLoader() |
Get the local loader to use.
|
LocalDependencySpecBuilder |
setClassExportFilter(ClassFilter classExportFilter) |
Set the class export filter to use.
|
LocalDependencySpecBuilder |
setClassImportFilter(ClassFilter classImportFilter) |
Set the class import filter to use.
|
LocalDependencySpecBuilder |
setExport(boolean export) |
Set a simple export filter, based on a
boolean flag. |
LocalDependencySpecBuilder |
setExportFilter(PathFilter exportFilter) |
Set the export filter to use.
|
LocalDependencySpecBuilder |
setImportFilter(PathFilter importFilter) |
Set the import filter to use.
|
LocalDependencySpecBuilder |
setImportServices(boolean services) |
Set a simple import filter, based on a
boolean flag specifying whether services should be
imported. |
LocalDependencySpecBuilder |
setLoaderPaths(Set<String> loaderPaths) |
Set the loader paths set.
|
LocalDependencySpecBuilder |
setLocalLoader(LocalLoader localLoader) |
Set the local loader to use.
|
LocalDependencySpecBuilder |
setResourceExportFilter(PathFilter resourceExportFilter) |
Set the resource export filter to use.
|
LocalDependencySpecBuilder |
setResourceImportFilter(PathFilter resourceImportFilter) |
Set the resource import filter to use.
|
getClassExportFilter, getClassImportFilter, getExportFilter, getResourceExportFilter, getResourceImportFilter
public LocalDependencySpecBuilder()
public PathFilter getImportFilter()
PathFilters.acceptAll()
.getImportFilter
in class DependencySpecBuilder
public LocalDependencySpecBuilder setImportFilter(PathFilter importFilter)
DependencySpecBuilder
setImportFilter
in class DependencySpecBuilder
importFilter
- the import filter to use (must not be null
)public LocalDependencySpecBuilder setImportServices(boolean services)
DependencySpecBuilder
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.setImportServices
in class DependencySpecBuilder
services
- the services flagpublic LocalDependencySpecBuilder setExportFilter(PathFilter exportFilter)
DependencySpecBuilder
setExportFilter
in class DependencySpecBuilder
exportFilter
- the export filter to use (must not be null
)public LocalDependencySpecBuilder setExport(boolean export)
DependencySpecBuilder
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.setExport
in class DependencySpecBuilder
export
- the export flagpublic LocalDependencySpecBuilder setResourceImportFilter(PathFilter resourceImportFilter)
DependencySpecBuilder
setResourceImportFilter
in class DependencySpecBuilder
resourceImportFilter
- the resource import filter to use (must not be null
)public LocalDependencySpecBuilder setResourceExportFilter(PathFilter resourceExportFilter)
DependencySpecBuilder
PathFilters.acceptAll()
.setResourceExportFilter
in class DependencySpecBuilder
resourceExportFilter
- the resource export filter to use (must not be null
)public LocalDependencySpecBuilder setClassImportFilter(ClassFilter classImportFilter)
DependencySpecBuilder
setClassImportFilter
in class DependencySpecBuilder
classImportFilter
- the class import filter to use (must not be null
)public LocalDependencySpecBuilder setClassExportFilter(ClassFilter classExportFilter)
DependencySpecBuilder
setClassExportFilter
in class DependencySpecBuilder
classExportFilter
- the class export filter to use (must not be null
)public LocalLoader getLocalLoader()
null
, indicating that the content should come from
the module being defined.null
to use the module's own contentpublic LocalDependencySpecBuilder setLocalLoader(LocalLoader localLoader)
localLoader
- the local loader to use, or null
to use the module's own contentpublic Set<String> getLoaderPaths()
public LocalDependencySpecBuilder setLoaderPaths(Set<String> loaderPaths)
loaderPaths
- the loader paths set (must not be null
)public DependencySpec build()
DependencySpecBuilder
build
in class DependencySpecBuilder
Copyright © 2018 JBoss by Red Hat. All rights reserved.