Package net.bytebuddy.utility.dispatcher
Class JavaDispatcher.DynamicClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- net.bytebuddy.utility.dispatcher.JavaDispatcher.DynamicClassLoader
-
- Enclosing class:
- JavaDispatcher<T>
protected static class JavaDispatcher.DynamicClassLoader extends java.lang.ClassLoaderA class loader for loading synthetic classes for implementing aJavaDispatcher.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceJavaDispatcher.DynamicClassLoader.ResolverA resolver to make adjustments that are possibly necessary to withhold module graph guarantees.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Object[]NO_ARGUMENTIndicates that a constructor does not require any arguments.private static java.lang.Class<?>[]NO_PARAMETERIndicates that a constructor does not declare any parameters.
-
Constructor Summary
Constructors Modifier Constructor Description protectedDynamicClassLoader(java.lang.Class<?> target)Creates a new dynamic class loader.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Invokerinvoker()Resolves aInvokerfor a separate class loader.protected static java.lang.Objectproxy(java.lang.Class<?> proxy, java.util.Map<java.lang.reflect.Method,JavaDispatcher.Dispatcher> dispatchers)Creates a new proxied type.-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Method Detail
-
proxy
protected static java.lang.Object proxy(java.lang.Class<?> proxy, java.util.Map<java.lang.reflect.Method,JavaDispatcher.Dispatcher> dispatchers)Creates a new proxied type.- Parameters:
proxy- The proxy type interface.dispatchers- The dispatchers to implement.- Returns:
- An instance of the proxied type.
-
-