T - The most specific known loaded type that is implemented by this dynamic type, usually the
type itself, an interface or the direct super class.public static interface DynamicType.Unloaded<T> extends DynamicType
ClassLoader.DynamicType.AbstractBase, DynamicType.Builder<T>, DynamicType.Default, DynamicType.Loaded<T>, DynamicType.Unloaded<T>ClassFileLocator.Compound, ClassFileLocator.Filtering, ClassFileLocator.ForClassLoader, ClassFileLocator.ForFolder, ClassFileLocator.ForInstrumentation, ClassFileLocator.ForJarFile, ClassFileLocator.ForModule, ClassFileLocator.ForModuleFile, ClassFileLocator.ForUrl, ClassFileLocator.MultiReleaseAware, ClassFileLocator.NoOp, ClassFileLocator.PackageDiscriminating, ClassFileLocator.Resolution, ClassFileLocator.SimpleCLASS_FILE_EXTENSION, META_INF_VERSIONS| Modifier and Type | Method and Description |
|---|---|
DynamicType.Unloaded<T> |
include(DynamicType... dynamicType)
Includes the provided dynamic types as auxiliary types of this instance.
|
DynamicType.Unloaded<T> |
include(List<? extends DynamicType> dynamicTypes)
Includes the provided dynamic types as auxiliary types of this instance.
|
DynamicType.Loaded<T> |
load(ClassLoader classLoader)
Attempts to load this dynamic type including all of its auxiliary types, if any.
|
<S extends ClassLoader> |
load(S classLoader,
ClassLoadingStrategy<? super S> classLoadingStrategy)
Attempts to load this dynamic type including all of its auxiliary types, if any.
|
close, getAllTypeDescriptions, getAllTypes, getAuxiliaries, getAuxiliaryTypeDescriptions, getAuxiliaryTypes, getBytes, getLoadedTypeInitializer, getLoadedTypeInitializers, getTypeDescription, hasAliveLoadedTypeInitializers, inject, inject, saveIn, toJar, toJarlocateDynamicType.Loaded<T> load(@MaybeNull ClassLoader classLoader)
Attempts to load this dynamic type including all of its auxiliary types, if any. If the class loader is an
unsealed instance of InjectionClassLoader, the classes are injected directy into the class loader, otherwise,
a new class loader is created where the supplied class loader is set as parent.
Note: A new class is attempted to be loaded each time this method is invoked, even if a compatible class was
created previously. Consider using a TypeCache.
classLoader - The class loader to use for this class loading or null for using the boot loader.<S extends ClassLoader> DynamicType.Loaded<T> load(@MaybeNull S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy)
Attempts to load this dynamic type including all of its auxiliary types, if any.
Note: A new class is attempted to be loaded each time this method is invoked, even if a compatible class was
created previously. Consider using a TypeCache.
S - The least specific type of class loader this strategy can apply to.classLoader - The class loader to use for this class loading.classLoadingStrategy - The class loader strategy which should be used for this class loading.ClassLoadingStrategy.DefaultDynamicType.Unloaded<T> include(DynamicType... dynamicType)
dynamicType - The dynamic types to include.DynamicType.Unloaded<T> include(List<? extends DynamicType> dynamicTypes)
dynamicTypes - The dynamic types to include.Copyright © 2014–2025. All rights reserved.