类的使用
cn.taketoday.aot.hint.ReflectionHints
使用ReflectionHints的程序包
程序包
说明
Support for registering the need for reflection, resources, java
serialization and proxies at runtime.
Annotation support for runtime hints.
Support for generating GraalVM native configuration from runtime hints.
-
cn.taketoday.aot.hint中ReflectionHints的使用
修饰符和类型字段说明private final ReflectionHintsRuntimeHints.jniprivate final ReflectionHintsRuntimeHints.reflection修饰符和类型方法说明RuntimeHints.jni()Provide access to jni-based hints.RuntimeHints.reflection()Provide access to reflection-based hints.ReflectionHints.registerConstructor(Constructor<?> constructor, ExecutableMode mode) Register the need for reflection on the specifiedConstructor, using the specifiedExecutableMode.ReflectionHints.registerField(Field field) Register the need for reflection on the specifiedField.ReflectionHints.registerMethod(Method method, ExecutableMode mode) Register the need for reflection on the specifiedMethod, using the specifiedExecutableMode.ReflectionHints.registerType(TypeReference type, MemberCategory... memberCategories) Register or customize reflection hints for the specified type using the specifiedMemberCategories.ReflectionHints.registerType(TypeReference type, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the type defined by the specifiedTypeReference.ReflectionHints.registerType(Class<?> type, MemberCategory... memberCategories) Register or customize reflection hints for the specified type using the specifiedMemberCategories.ReflectionHints.registerType(Class<?> type, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the specified type.ReflectionHints.registerTypeIfPresent(ClassLoader classLoader, String typeName, MemberCategory... memberCategories) Register or customize reflection hints for the specified type if it is available using the specifiedClassLoader.ReflectionHints.registerTypeIfPresent(ClassLoader classLoader, String typeName, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the specified type if it is available using the specifiedClassLoader.ReflectionHints.registerTypes(Iterable<TypeReference> types, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the types defined by the specified list oftype references.参数类型为ReflectionHints的cn.taketoday.aot.hint中的方法修饰符和类型方法说明private voidBindingReflectionHintsRegistrar.registerHintsForClassAttributes(ReflectionHints hints, MergedAnnotation<Annotation> annotation) private voidBindingReflectionHintsRegistrar.registerJacksonHints(ReflectionHints hints, Class<?> clazz) private voidBindingReflectionHintsRegistrar.registerPropertyHints(ReflectionHints hints, Set<Type> seen, Method method, int parameterIndex) private voidBindingReflectionHintsRegistrar.registerRecordHints(ReflectionHints hints, Set<Type> seen, Method method) voidBindingReflectionHintsRegistrar.registerReflectionHints(ReflectionHints hints, Type... types) Register the necessary reflection hints to bind the specified types.private voidBindingReflectionHintsRegistrar.registerReflectionHints(ReflectionHints hints, Set<Type> seen, Type type) -
cn.taketoday.aot.hint.annotation中ReflectionHints的使用
修饰符和类型方法说明protected voidSimpleReflectiveProcessor.registerConstructorHint(ReflectionHints hints, Constructor<?> constructor) RegisterReflectionHintsagainst the specifiedConstructor.protected voidSimpleReflectiveProcessor.registerFieldHint(ReflectionHints hints, Field field) RegisterReflectionHintsagainst the specifiedField.protected voidSimpleReflectiveProcessor.registerMethodHint(ReflectionHints hints, Method method) RegisterReflectionHintsagainst the specifiedMethod.voidReflectiveProcessor.registerReflectionHints(ReflectionHints hints, AnnotatedElement element) RegisterReflectionHintsagainst the specifiedAnnotatedElement.voidReflectiveRuntimeHintsRegistrar.DelegatingReflectiveProcessor.registerReflectionHints(ReflectionHints hints, AnnotatedElement element) voidRegisterReflectionForBindingProcessor.registerReflectionHints(ReflectionHints hints, AnnotatedElement element) voidSimpleReflectiveProcessor.registerReflectionHints(ReflectionHints hints, AnnotatedElement element) protected voidSimpleReflectiveProcessor.registerTypeHint(ReflectionHints hints, Class<?> type) RegisterReflectionHintsagainst the specifiedClass. -
cn.taketoday.aot.nativex中ReflectionHints的使用
参数类型为ReflectionHints的cn.taketoday.aot.nativex中的方法修饰符和类型方法说明static voidReflectionHintsWriter.write(BasicJsonWriter writer, ReflectionHints hints) private voidNativeConfigurationWriter.writeJniHints(ReflectionHints hints) private voidNativeConfigurationWriter.writeReflectionHints(ReflectionHints hints)