Class NativeResourcesEntry

    • Method Detail

      • of

        public static NativeResourcesEntry of​(String resource)
        Create a new NativeResourcesEntry for the specified resource pattern.
        Parameters:
        resource - Java regexp that matches resource(s) to be included
        Returns:
        a resource entry
      • ofBundle

        public static NativeResourcesEntry ofBundle​(String bundle)
        Create a new NativeResourcesEntry for the specified bundle pattern.
        Parameters:
        bundle - Java regexp that matches bundle(s) to be included
        Returns:
        a resource entry
      • ofClassName

        public static NativeResourcesEntry ofClassName​(String className)
        Create a new NativeResourcesEntry for the specified class name. This allows reading ASM metadata at runtime.
        Parameters:
        className - the type to consider
        Returns:
        a resource entry
      • ofClass

        public static NativeResourcesEntry ofClass​(Class<?> type)
        Create a new NativeResourcesEntry for the specified class. This allows reading ASM metadata at runtime.
        Parameters:
        type - the type to consider
        Returns:
        a resource entry
      • contribute

        public void contribute​(org.springframework.nativex.domain.resources.ResourcesDescriptor descriptor)