类的使用
cn.taketoday.aot.hint.TypeHint.Builder
使用TypeHint.Builder的程序包
程序包
说明
Support for registering the need for reflection, resources, java
serialization and proxies at runtime.
Convenience classes for using runtime hints.
-
cn.taketoday.aot.hint中TypeHint.Builder的使用
类型参数类型为TypeHint.Builder的cn.taketoday.aot.hint中的字段修饰符和类型方法说明(专用程序包) static TypeHint.BuilderTypeHint.of(TypeReference type) Initialize a builder for the type defined by the specifiedTypeReference.TypeHint.Builder.onReachableType(TypeReference reachableType) Make this hint conditional on the fact that the specified type is in a reachable code path from a static analysis point of view.TypeHint.Builder.onReachableType(Class<?> reachableType) Make this hint conditional on the fact that the specified type is in a reachable code path from a static analysis point of view.TypeHint.Builder.withConstructor(List<TypeReference> parameterTypes, ExecutableMode mode) Register the need for reflection on the constructor with the specified parameter types, using the specifiedExecutableMode.private TypeHint.BuilderTypeHint.Builder.withConstructor(List<TypeReference> parameterTypes, Consumer<ExecutableHint.Builder> constructorHint) Register the need for reflection on the constructor with the specified parameter types.Register the need for reflection on the field with the specified name.TypeHint.Builder.withMembers(MemberCategory... memberCategories) Adds the specified member categories.TypeHint.Builder.withMethod(String name, List<TypeReference> parameterTypes, ExecutableMode mode) Register the need for reflection on the method with the specified name and parameter types, using the specifiedExecutableMode.private TypeHint.BuilderTypeHint.Builder.withMethod(String name, List<TypeReference> parameterTypes, Consumer<ExecutableHint.Builder> methodHint) Register the need for reflection on the method with the specified name and parameter types.返回变量类型为TypeHint.Builder的类型的cn.taketoday.aot.hint中的方法修饰符和类型方法说明static Consumer<TypeHint.Builder>TypeHint.builtWith(MemberCategory... memberCategories) 类型变量类型为TypeHint.Builder的cn.taketoday.aot.hint中的方法参数修饰符和类型方法说明ReflectionHints.registerType(TypeReference type, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the type defined by the specifiedTypeReference.ReflectionHints.registerType(Class<?> type, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the specified type.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.参数类型为TypeHint.Builder的cn.taketoday.aot.hint中的构造器 -
cn.taketoday.aot.hint.support中TypeHint.Builder的使用
类型参数类型为TypeHint.Builder的cn.taketoday.aot.hint.support中的字段修饰符和类型字段说明private static final Consumer<TypeHint.Builder>ClassHintUtils.asClassBasedProxyprivate static final Consumer<TypeHint.Builder>ClassHintUtils.asProxiedUserClass