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.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> |
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.ProtectionDomain
.ClassLoadingStrategy.Configurable<S> with(PackageDefinitionStrategy packageDefinitionStrategy)
packageDefinitionStrategy
- The package definer to be used.ClassLoadingStrategy.Configurable<S> allowExistingTypes()
Copyright © 2014–2017. All rights reserved.