Package net.bytebuddy.utility.dispatcher
A package to handle dispatching of classes. This package is intentionally not exported
to avoid exposing this mechanism to external users when Byte Buddy is used as a module.
This way, external users cannot emulate Byte Buddy's privilege when caller sensitive code
would be proxied.
-
Interface Summary Interface Description JavaDispatcher.Dispatcher A dispatcher for handling a proxied method.JavaDispatcher.DynamicClassLoader.Resolver A resolver to make adjustments that are possibly necessary to withhold module graph guarantees. -
Class Summary Class Description JavaDispatcher<T> A dispatcher for creating a proxy that invokes methods of a type that is possibly unknown on the current VM.JavaDispatcher.DirectInvoker AnInvoker
that uses Byte Buddy's invocation context to use if dynamic class loading is not supported, for example on Android, and that do not use secured contexts, where this security measure is obsolete to begin with.JavaDispatcher.Dispatcher.ForConstructor A dispatcher for invoking a constructor.JavaDispatcher.Dispatcher.ForContainerCreation A dispatcher that creates an array.JavaDispatcher.Dispatcher.ForDefaultValue.OfNonPrimitiveArray A dispatcher for a non-primitive array type.JavaDispatcher.Dispatcher.ForInstanceCheck A dispatcher that performs an instance check.JavaDispatcher.Dispatcher.ForNonStaticMethod A dispatcher for invoking a non-static proxied method.JavaDispatcher.Dispatcher.ForStaticMethod A dispatcher for invoking a static proxied method.JavaDispatcher.Dispatcher.ForUnresolvedMethod A dispatcher for an unresolved method.JavaDispatcher.DynamicClassLoader A class loader for loading synthetic classes for implementing aJavaDispatcher
.JavaDispatcher.DynamicClassLoader.Resolver.ForModuleSystem A resolver for VMs that do support the module system.JavaDispatcher.InvokerCreationAction A privileged action for creating anInvoker
.JavaDispatcher.ProxiedInvocationHandler An invocation handler that invokes given dispatchers. -
Enum Summary Enum Description JavaDispatcher.Dispatcher.ForDefaultValue A dispatcher that returns a fixed value.JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray A dispatcher for returning a default value for a primitive array.JavaDispatcher.DynamicClassLoader.Resolver.CreationAction An action to create a resolver.JavaDispatcher.DynamicClassLoader.Resolver.NoOp A non-operational resolver for VMs that do not support the module system. -
Annotation Types Summary Annotation Type Description JavaDispatcher.Container Indicates that the method is supposed to return an array of the proxied type.JavaDispatcher.Defaults Indicates that a method is supposed to return a default value if a method or type could not be resolved.JavaDispatcher.Instance Indicates that a method is supposed to perform an instance check.JavaDispatcher.IsConstructor Indicates that a proxied method is a constructor.JavaDispatcher.IsStatic Indicates that a proxied method is static.JavaDispatcher.Proxied Indicates a proxied type's name.