Skip to content

Commit

Permalink
Add documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Sep 13, 2020
1 parent 5009d26 commit 77e6e5f
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5753,17 +5753,29 @@ protected Builder<U> materialize() {
interface Unloaded<T> extends DynamicType {

/**
* <p>
* Attempts to load this dynamic type including all of its auxiliary types, if any. If the class loader is an
* unsealed instance of {@link 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.
* </p>
* <p>
* <b>Note</b>: 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 {@link net.bytebuddy.TypeCache}.
* </p>
*
* @param classLoader The class loader to use for this class loading.
* @return This dynamic type in its loaded state.
*/
Loaded<T> load(ClassLoader classLoader);

/**
* <p>
* Attempts to load this dynamic type including all of its auxiliary types, if any.
* </p>
* <p>
* <b>Note</b>: 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 {@link net.bytebuddy.TypeCache}.
* </p>
*
* @param classLoader The class loader to use for this class loading.
* @param classLoadingStrategy The class loader strategy which should be used for this class loading.
Expand Down

0 comments on commit 77e6e5f

Please sign in to comment.