Package net.bytebuddy.description.type
Class TypeDescription.Generic.LazyProxy
- java.lang.Object
-
- net.bytebuddy.description.type.TypeDescription.Generic.LazyProxy
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
- Enclosing interface:
- TypeDescription.Generic
@Enhance public static class TypeDescription.Generic.LazyProxy extends java.lang.Object implements java.lang.reflect.InvocationHandler
A lazy proxy for representing aTypeDescription.Genericfor a loaded type. This proxy is used to avoid locks when Byte Buddy is loaded circularly.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<?>typeThe represented loaded type.
-
Constructor Summary
Constructors Modifier Constructor Description protectedLazyProxy(java.lang.Class<?> type)Creates a new lazy proxy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectinvoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] argument)protected static TypeDescription.Genericof(java.lang.Class<?> type)Resolves a lazy proxy for a loaded type as a generic type description.
-
-
-
Method Detail
-
of
protected static TypeDescription.Generic of(java.lang.Class<?> type)
Resolves a lazy proxy for a loaded type as a generic type description.- Parameters:
type- The represented loaded type.- Returns:
- The lazy proxy.
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, @MaybeNull java.lang.Object[] argument) throws java.lang.Throwable- Specified by:
invokein interfacejava.lang.reflect.InvocationHandler- Throws:
java.lang.Throwable
-
-