类的使用
cn.taketoday.aot.hint.RuntimeHints
使用RuntimeHints的程序包
程序包
说明
Support classes for components that contribute generated code equivalent to a
runtime behavior.
Support for registering the need for reflection, resources, java
serialization and proxies at runtime.
Annotation support for runtime hints.
Predicate support for runtime hints.
Convenience classes for using runtime hints.
Support for generating GraalVM native configuration from runtime hints.
-
cn.taketoday.aot.generate中RuntimeHints的使用
修饰符和类型方法说明DefaultGenerationContext.getRuntimeHints()GenerationContext.getRuntimeHints()Get theRuntimeHintsused by the context.参数类型为RuntimeHints的cn.taketoday.aot.generate中的构造器限定符构造器说明DefaultGenerationContext(ClassNameGenerator classNameGenerator, GeneratedFiles generatedFiles, RuntimeHints runtimeHints) Create a newDefaultGenerationContextinstance backed by the specifiedClassNameGenerator,GeneratedFiles, andRuntimeHints.protectedDefaultGenerationContext(GeneratedClasses generatedClasses, GeneratedFiles generatedFiles, RuntimeHints runtimeHints) Create a newDefaultGenerationContextinstance backed by the specified items. -
cn.taketoday.aot.hint中RuntimeHints的使用
参数类型为RuntimeHints的cn.taketoday.aot.hint中的方法修饰符和类型方法说明voidRuntimeHintsRegistrar.registerHints(RuntimeHints hints, ClassLoader classLoader) Contribute hints to the givenRuntimeHintsinstance. -
cn.taketoday.aot.hint.annotation中RuntimeHints的使用
修饰符和类型方法说明voidReflectiveRuntimeHintsRegistrar.registerRuntimeHints(RuntimeHints runtimeHints, Class<?>... types) Register the relevant runtime hints for elements that are annotated withReflective. -
cn.taketoday.aot.hint.predicate中RuntimeHints的使用
返回变量类型为RuntimeHints的类型的cn.taketoday.aot.hint.predicate中的方法修饰符和类型方法说明(专用程序包) Predicate<RuntimeHints>ReflectionHintsPredicates.ConstructorHintPredicate.exactMatch()(专用程序包) abstract Predicate<RuntimeHints>ReflectionHintsPredicates.ExecutableHintPredicate.exactMatch()(专用程序包) Predicate<RuntimeHints>ReflectionHintsPredicates.MethodHintPredicate.exactMatch()Return a predicate that checks whether a resource hint is registered for the given bundle name.ProxyHintsPredicates.forInterfaces(TypeReference... interfaces) Return a predicate that checks whether aJdkProxyHintis registered for the given interfaces.ProxyHintsPredicates.forInterfaces(Class<?>... interfaces) Return a predicate that checks whether aJdkProxyHintis registered for the given interfaces.ResourceHintsPredicates.forResource(TypeReference type, String resourceName) Return a predicate that checks whether a resource hint is registered for the given resource name, located in the given type's package.ResourceHintsPredicates.forResource(String resourceName) Return a predicate that checks whether a resource hint is registered for the given resource name.SerializationHintsPredicates.onType(TypeReference typeReference) Return a predicate that checks whether aserialization hintis registered for the given type reference.Return a predicate that checks whether aserialization hintis registered for the given type.ReflectionHintsPredicates.TypeHintPredicate.withAnyMemberCategory(MemberCategory... memberCategories) Refine the current predicate to match if any of the givencategoriesis present.ReflectionHintsPredicates.TypeHintPredicate.withMemberCategories(MemberCategory... memberCategories) Refine the current predicate to only match if the givencategoriesare present.ReflectionHintsPredicates.TypeHintPredicate.withMemberCategory(MemberCategory memberCategory) Refine the current predicate to only match if the givenMemberCategoryis present.修饰符和类型方法说明private TypeHintReflectionHintsPredicates.TypeHintPredicate.getTypeHint(RuntimeHints hints) booleanReflectionHintsPredicates.ConstructorHintPredicate.test(RuntimeHints runtimeHints) booleanReflectionHintsPredicates.ExecutableHintPredicate.test(RuntimeHints runtimeHints) booleanReflectionHintsPredicates.FieldHintPredicate.test(RuntimeHints runtimeHints) booleanReflectionHintsPredicates.MethodHintPredicate.test(RuntimeHints runtimeHints) booleanReflectionHintsPredicates.TypeHintPredicate.test(RuntimeHints hints) -
cn.taketoday.aot.hint.support中RuntimeHints的使用
修饰符和类型方法说明voidObjectToObjectConverterRuntimeHints.registerHints(RuntimeHints hints, ClassLoader classLoader) voidTodayPropertiesRuntimeHints.registerHints(RuntimeHints hints, ClassLoader classLoader) voidTodayStrategiesRuntimeHints.registerHints(RuntimeHints hints, ClassLoader classLoader) private voidTodayStrategiesRuntimeHints.registerHints(RuntimeHints hints, ClassLoader classLoader, String resourceLocation) private voidTodayStrategiesRuntimeHints.registerHints(RuntimeHints hints, ClassLoader classLoader, String factoryClassName, List<String> implementationClassNames) static voidClassHintUtils.registerProxyIfNecessary(Class<?> candidateClass, RuntimeHints runtimeHints) Register a proxy hint for a JDK proxy or corresponding reflection hints for a CGLIB-generated subclass, if necessary. -
cn.taketoday.aot.nativex中RuntimeHints的使用
参数类型为RuntimeHints的cn.taketoday.aot.nativex中的方法修饰符和类型方法说明voidNativeConfigurationWriter.write(RuntimeHints hints) Write the GraalVM native configuration from the provided hints.