public static class ClassLoaderModel.ClassLoaderModelBuilder extends Object
ClassLoaderModel| Modifier and Type | Field and Description |
|---|---|
protected Set<BundleDependency> |
dependencies |
| Constructor and Description |
|---|
ClassLoaderModelBuilder()
Creates an empty builder.
|
ClassLoaderModelBuilder(ClassLoaderModel source)
Creates a builder initialized with a
ClassLoaderModel's state |
| Modifier and Type | Method and Description |
|---|---|
ClassLoaderModel |
build()
Creates a
ClassLoaderModel with the current configuration. |
ClassLoaderModel.ClassLoaderModelBuilder |
containing(URL url)
Adds an
URL to the model |
ClassLoaderModel.ClassLoaderModelBuilder |
dependingOn(Set<BundleDependency> dependencies)
Indicates which dependencies are required for this model.
|
ClassLoaderModel.ClassLoaderModelBuilder |
exportingPackages(Set<String> packages)
Indicates which package are exported on the model.
|
ClassLoaderModel.ClassLoaderModelBuilder |
exportingPrivilegedPackages(Set<String> packages,
Set<String> artifactIds)
Indicates which Java packages are exported as privileged API on the model.
|
ClassLoaderModel.ClassLoaderModelBuilder |
exportingResources(Set<String> resources)
Indicates which resource are exported on the model.
|
ClassLoaderModel.ClassLoaderModelBuilder |
includeTestDependencies(boolean includeTestDependencies)
Sets this model to include test dependencies on class loader URL resolution.
|
ClassLoaderModel.ClassLoaderModelBuilder |
withLocalPackages(Set<String> packages)
Indicates which Java packages are loaded from the artifact itself, even if some other artifact in the region exports it.
|
ClassLoaderModel.ClassLoaderModelBuilder |
withLocalResources(Set<String> resources)
Indicates which resources are loaded from the artifact itself, even if some other artifact in the region exports it.
|
protected Set<BundleDependency> dependencies
public ClassLoaderModelBuilder()
public ClassLoaderModelBuilder(ClassLoaderModel source)
ClassLoaderModel's statesource - used to initialize the created object. Non null.public ClassLoaderModel.ClassLoaderModelBuilder exportingPackages(Set<String> packages)
packages - packages to export. Non null.public ClassLoaderModel.ClassLoaderModelBuilder exportingResources(Set<String> resources)
resources - resources to export. Non null.public ClassLoaderModel.ClassLoaderModelBuilder withLocalPackages(Set<String> packages)
The reason to use this is a that if a plugin internally uses a certain version of a lib, providing certain packages, another plugin exporting some of those packages must not modify the inner implementation used by the first plugin.
packages - packages to not import. Non null.public ClassLoaderModel.ClassLoaderModelBuilder withLocalResources(Set<String> resources)
The reason to use this is a that if a plugin internally uses a certain version of a lib, providing certain packages, another plugin exporting some of those packages must not modify the inner implementation used by the first plugin.
resources - resources to not import. Non null.public ClassLoaderModel.ClassLoaderModelBuilder exportingPrivilegedPackages(Set<String> packages, Set<String> artifactIds)
packages - Java packages names to export. Non null.artifactIds - artifact IDs that have access to the privileged API. No null.public ClassLoaderModel.ClassLoaderModelBuilder dependingOn(Set<BundleDependency> dependencies)
dependencies - dependencies on which the model depends on. Non null.public ClassLoaderModel.ClassLoaderModelBuilder containing(URL url)
URL to the modelurl - indicates which resource to add. Non null.public ClassLoaderModel.ClassLoaderModelBuilder includeTestDependencies(boolean includeTestDependencies)
includeTestDependencies - true to include test dependencies.public ClassLoaderModel build()
ClassLoaderModel with the current configuration.ClassLoaderModelCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.