Annotation Type InitializationHint


  • @Repeatable(InitializationHints.class)
    @Retention(RUNTIME)
    public @interface InitializationHint
    Used by NativeHint annotations to indicate which classes/packages should be initialized explicitly at build-time or runtime.
    Author:
    Andy Clement, Sebastien Deleuze
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] packageNames
      Configure initialization for a set of packages.
      java.lang.String[] typeNames
      Alternative way to configure initialization, should be used when type visibility prevents using Class references, or for nested types which should be specified using a $ separator (for example com.example.Foo$Bar).
      java.lang.Class<?>[] types
      Preferred way to configure initialization.
      • types

        java.lang.Class<?>[] types
        Preferred way to configure initialization.
        Returns:
        the types
        Default:
        {}
      • typeNames

        java.lang.String[] typeNames
        Alternative way to configure initialization, should be used when type visibility prevents using Class references, or for nested types which should be specified using a $ separator (for example com.example.Foo$Bar).
        Returns:
        the type names
        Default:
        {}
      • packageNames

        java.lang.String[] packageNames
        Configure initialization for a set of packages.
        Returns:
        the package names
        Default:
        {}