Annotation Type TypeHint


  • @Target({ANNOTATION_TYPE,TYPE})
    @Retention(RUNTIME)
    public @interface TypeHint
    The type hint annotation is a general annotation that can be used on interfaces to provide additional information about types used at runtime. This can aid ahead of time compilation tools like Graal.
    Since:
    1.0
    • Element Detail

      • value

        java.lang.Class[] value
        Returns:
        The types to provide a hint
        Default:
        {}
      • accessType

        TypeHint.AccessType[] accessType
        Describes the access.
        Returns:
        The access type
        Default:
        {io.micronaut.core.annotation.TypeHint.AccessType.ALL_DECLARED_CONSTRUCTORS}
      • typeNames

        java.lang.String[] typeNames
        Returns:
        The type names
        Default:
        {}