public static class ClassLoaderConfiguration.ClassLoaderConfigurationBuilder extends Object
ClassLoaderConfiguration| Modifier and Type | Field and Description |
|---|---|
protected Set<BundleDependency> |
dependencies |
| Constructor and Description |
|---|
ClassLoaderConfigurationBuilder()
Creates an empty builder.
|
ClassLoaderConfigurationBuilder(ClassLoaderConfiguration source)
Creates a builder initialized with a
ClassLoaderConfiguration's state |
| Modifier and Type | Method and Description |
|---|---|
ClassLoaderConfiguration |
build()
Creates a
ClassLoaderConfiguration with the current configuration. |
ClassLoaderConfiguration.ClassLoaderConfigurationBuilder |
containing(List<URL> urls)
Adds
URLs to the configuration. |
ClassLoaderConfiguration.ClassLoaderConfigurationBuilder |
containing(URL url)
Adds an
URL to the configuration. |
ClassLoaderConfiguration.ClassLoaderConfigurationBuilder |
dependingOn(Set<BundleDependency> dependencies)
Indicates which dependencies are required for this configuration.
|
protected ClassLoaderConfiguration |
doBuild()
Builds the configuration.
|
ClassLoaderConfiguration.ClassLoaderConfigurationBuilder |
exportingPackages(Set<String> packages)
Indicates which package are exported on the configuration.
|
ClassLoaderConfiguration.ClassLoaderConfigurationBuilder |
exportingPrivilegedPackages(Set<String> packages,
Set<String> artifactIds)
Indicates which Java packages are exported as privileged API on the configuration.
|
ClassLoaderConfiguration.ClassLoaderConfigurationBuilder |
exportingResources(Set<String> resources)
Indicates which resource are exported on the configuration.
|
protected Boolean |
getIncludeTestDependencies() |
protected Set<String> |
getLocalPackages() |
protected Set<String> |
getLocalResources() |
protected Set<String> |
getPackages() |
protected Set<String> |
getPrivilegedArtifacts() |
protected Set<String> |
getPrivilegedExportedPackages() |
protected Set<String> |
getResources() |
protected List<URL> |
getUrls() |
ClassLoaderConfiguration.ClassLoaderConfigurationBuilder |
includeTestDependencies(boolean includeTestDependencies)
Sets this configuration to include test dependencies on class loader URL resolution.
|
ClassLoaderConfiguration.ClassLoaderConfigurationBuilder |
withLocalPackages(Set<String> packages)
Indicates which Java packages are loaded from the artifact itself, even if some other artifact in the region exports it.
|
ClassLoaderConfiguration.ClassLoaderConfigurationBuilder |
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 ClassLoaderConfigurationBuilder()
public ClassLoaderConfigurationBuilder(ClassLoaderConfiguration source)
ClassLoaderConfiguration's statesource - used to initialize the created object. Non-null.public ClassLoaderConfiguration.ClassLoaderConfigurationBuilder exportingPackages(Set<String> packages)
packages - packages to export. Non-null.public ClassLoaderConfiguration.ClassLoaderConfigurationBuilder exportingResources(Set<String> resources)
resources - resources to export. Non-null.public ClassLoaderConfiguration.ClassLoaderConfigurationBuilder 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 ClassLoaderConfiguration.ClassLoaderConfigurationBuilder 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 ClassLoaderConfiguration.ClassLoaderConfigurationBuilder 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 ClassLoaderConfiguration.ClassLoaderConfigurationBuilder dependingOn(Set<BundleDependency> dependencies)
dependencies - dependencies on which the configuration depends on. Non-null.public ClassLoaderConfiguration.ClassLoaderConfigurationBuilder containing(URL url)
URL to the configuration.url - indicates which resource to add. Non-null.public ClassLoaderConfiguration.ClassLoaderConfigurationBuilder containing(List<URL> urls)
URLs to the configuration.urls - indicates which resources to add. Non-null.public ClassLoaderConfiguration.ClassLoaderConfigurationBuilder includeTestDependencies(boolean includeTestDependencies)
includeTestDependencies - true to include test dependencies.protected Boolean getIncludeTestDependencies()
public ClassLoaderConfiguration build()
ClassLoaderConfiguration with the current configuration.ClassLoaderConfiguration.protected ClassLoaderConfiguration doBuild()
Copyright © 2003–2023 MuleSoft, Inc.. All rights reserved.