public class GenerateMethodWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
UPDATE_INTERCEPTOR |
| Modifier and Type | Method and Description |
|---|---|
static DocumentContext |
acquireDocumentContext(boolean metaData,
ThreadLocal<DocumentContextHolder> documentContextTL,
MarshallableOut out)
Acquires a
DocumentContext instance, either by reusing the existing one from the thread-local
context holder if it's not closed or by creating a new one using the provided output. |
static @Nullable Class<?> |
newClass(String fullClassName,
Set<Class<?>> interfaces,
ClassLoader classLoader,
WireType wireType,
String genericEvent,
boolean metaData,
boolean useMethodId,
boolean useUpdateInterceptor)
Deprecated.
|
static @Nullable Class<?> |
newClass(String fullClassName,
Set<Class<?>> interfaces,
ClassLoader classLoader,
WireType wireType,
String genericEvent,
boolean metaData,
boolean useMethodId,
boolean useUpdateInterceptor,
boolean verboseTypes)
Generates a proxy class based on the provided interface class.
|
public static final String UPDATE_INTERCEPTOR
@Nullable @Deprecated public static @Nullable Class<?> newClass(String fullClassName, Set<Class<?>> interfaces, ClassLoader classLoader, WireType wireType, String genericEvent, boolean metaData, boolean useMethodId, boolean useUpdateInterceptor)
fullClassName - Fully qualified class name for the generated proxy class.interfaces - A set of interface classes that the generated proxy class will implement.classLoader - The class loader to use for generating the proxy class.wireType - The wire type for serialization.genericEvent - The generic event type.metaData - Indicates if metadata should be included.useMethodId - Indicates if method ID should be used.useUpdateInterceptor - Indicates if the update interceptor should be used.@Nullable public static @Nullable Class<?> newClass(String fullClassName, Set<Class<?>> interfaces, ClassLoader classLoader, WireType wireType, String genericEvent, boolean metaData, boolean useMethodId, boolean useUpdateInterceptor, boolean verboseTypes)
fullClassName - Fully qualified class name for the generated proxy class.interfaces - A set of interface classes that the generated proxy class will implement.classLoader - The class loader to use for generating the proxy class.wireType - The wire type for serialization.genericEvent - The generic event type.metaData - Indicates if metadata should be included.useMethodId - Indicates if method ID should be used.useUpdateInterceptor - Indicates if the update interceptor should be used.verboseTypes - Indicates if verbose types should be used.public static DocumentContext acquireDocumentContext(boolean metaData, ThreadLocal<DocumentContextHolder> documentContextTL, MarshallableOut out)
DocumentContext instance, either by reusing the existing one from the thread-local
context holder if it's not closed or by creating a new one using the provided output.metaData - Indicates if metadata should be included in the DocumentContext.documentContextTL - The thread-local holder of the DocumentContext.out - The output where the document will be written.DocumentContext.Copyright © 2024. All rights reserved.