S
- The least specific type of class loader this strategy can apply to.public static interface ClassLoadingStrategy.Configurable<S extends ClassLoader> extends ClassLoadingStrategy<S>
ClassLoadingStrategy
that allows configuring the strategy's behavior.ClassLoadingStrategy.Configurable<S extends ClassLoader>, ClassLoadingStrategy.Default, ClassLoadingStrategy.ForBootstrapInjection, ClassLoadingStrategy.ForJnaInjection, ClassLoadingStrategy.ForUnsafeInjection, ClassLoadingStrategy.UsingLookup
BOOTSTRAP_LOADER, NO_PROTECTION_DOMAIN
Modifier and Type | Method and Description |
---|---|
ClassLoadingStrategy.Configurable<S> |
allowExistingTypes()
Determines if this class loading strategy should not throw an exception when attempting to load a class that
was already loaded.
|
ClassLoadingStrategy.Configurable<S> |
opened()
With an opened class loading strategy, it is assured that types can be added to the class loader, either by
indirect injection using this strategy or by creating a class loader that explicitly supports injection.
|
ClassLoadingStrategy.Configurable<S> |
with(PackageDefinitionStrategy packageDefinitionStrategy)
Defines the supplied package definition strategy to be used for defining packages.
|
ClassLoadingStrategy.Configurable<S> |
with(ProtectionDomain protectionDomain)
Overrides the implicitly set default
ProtectionDomain with an explicit one. |
load
ClassLoadingStrategy.Configurable<S> with(ProtectionDomain protectionDomain)
ProtectionDomain
with an explicit one.protectionDomain
- The protection domain to apply or null
if no protection domain is set.ProtectionDomain
.ClassLoadingStrategy.Configurable<S> with(PackageDefinitionStrategy packageDefinitionStrategy)
packageDefinitionStrategy
- The package definer to be used.ClassLoadingStrategy.Configurable<S> allowExistingTypes()
ClassLoadingStrategy.Configurable<S> opened()
Copyright © 2014–2024. All rights reserved.