java.lang.Object
org.jboss.modules.DependencySpecBuilder
- Direct Known Subclasses:
LocalDependencySpecBuilder
,ModuleDependencySpecBuilder
The base class of dependency specification builders.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract DependencySpec
build()
Construct the dependency specification.Get the class export filter to use.Get the class import filter to use.Get the export filter to use.Get the import filter to use.Get the resource export filter to use.Get the resource import filter to use.setClassExportFilter
(ClassFilter classExportFilter) Set the class export filter to use.setClassImportFilter
(ClassFilter classImportFilter) Set the class import filter to use.setExport
(boolean export) Set a simple export filter, based on aboolean
flag.setExportFilter
(PathFilter exportFilter) Set the export filter to use.setImportFilter
(PathFilter importFilter) Set the import filter to use.setImportServices
(boolean services) Set a simple import filter, based on aboolean
flag specifying whether services should be imported.setResourceExportFilter
(PathFilter resourceExportFilter) Set the resource export filter to use.setResourceImportFilter
(PathFilter resourceImportFilter) Set the resource import filter to use.
-
Constructor Details
-
DependencySpecBuilder
public DependencySpecBuilder()Construct a new instance.
-
-
Method Details
-
getImportFilter
Get the import filter to use. The default value isPathFilters.getDefaultImportFilter()
.- Returns:
- the import filter to use
-
setImportFilter
Set the import filter to use.- Parameters:
importFilter
- the import filter to use (must not benull
)- Returns:
- this builder
-
setImportServices
Set a simple import filter, based on aboolean
flag specifying whether services should be imported. If the flag istrue
, the import filter is set toPathFilters.getDefaultImportFilterWithServices()
, otherwise it is set toPathFilters.getDefaultImportFilter()
. Any previous import filter setting is overwritten.- Parameters:
services
- the services flag- Returns:
- this builder
-
getExportFilter
Get the export filter to use. The default value isPathFilters.rejectAll()
.- Returns:
- the export filter to use
-
setExportFilter
Set the export filter to use.- Parameters:
exportFilter
- the export filter to use (must not benull
)- Returns:
- this builder
-
setExport
Set a simple export filter, based on aboolean
flag. If the flag istrue
, the export filter is set toPathFilters.acceptAll()
, otherwise it is set toPathFilters.rejectAll()
. Any previous export filter setting is overwritten.- Parameters:
export
- the export flag- Returns:
- this builder
-
getResourceImportFilter
Get the resource import filter to use. The default value isPathFilters.acceptAll()
.- Returns:
- the resource import filter to use
-
setResourceImportFilter
Set the resource import filter to use.- Parameters:
resourceImportFilter
- the resource import filter to use (must not benull
)- Returns:
- this builder
-
getResourceExportFilter
Get the resource export filter to use. The default value isPathFilters.acceptAll()
.- Returns:
- the resource export filter to use
-
setResourceExportFilter
Set the resource export filter to use. The default value isPathFilters.acceptAll()
.- Parameters:
resourceExportFilter
- the resource export filter to use (must not benull
)- Returns:
- this builder
-
getClassImportFilter
Get the class import filter to use. The default value isClassFilters.acceptAll()
.- Returns:
- the class import filter to use
-
setClassImportFilter
Set the class import filter to use.- Parameters:
classImportFilter
- the class import filter to use (must not benull
)- Returns:
- this builder
-
getClassExportFilter
Get the class export filter to use. The default value isClassFilters.acceptAll()
.- Returns:
- the class export filter to use
-
setClassExportFilter
Set the class export filter to use.- Parameters:
classExportFilter
- the class export filter to use (must not benull
)- Returns:
- this builder
-
build
Construct the dependency specification.- Returns:
- the dependency specification
-