Annotation Type ManifestProperty


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface ManifestProperty
    This annotation injects a header from a META-INF/MANIFEST.MF file in the annotated field.
    Author:
    Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String header
      The header name in the META-INF/MANIFEST.MF file.
      String jar
      The jar file name (in the classpath) containing the META-INF/MANIFEST.MF file.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String defaultValue
      The default value to set in case the header does not exist or cannot be loaded.
      boolean failFast
      Flag to fail the configuration process if the header is absent
      int order
      Injection order regarding other annotations.
    • Element Detail

      • jar

        String jar
        The jar file name (in the classpath) containing the META-INF/MANIFEST.MF file.
        Returns:
        jar file name (in the classpath) containing META-INF/MANIFEST.MF file.
      • header

        String header
        The header name in the META-INF/MANIFEST.MF file.
        Returns:
        the header name in the META-INF/MANIFEST.MF file.
      • defaultValue

        String defaultValue
        The default value to set in case the header does not exist or cannot be loaded.
        Returns:
        the default value to set
        Default:
        ""
      • failFast

        boolean failFast
        Flag to fail the configuration process if the header is absent
        Returns:
        true if the configuration process should fail fast if the header is absent
        Default:
        false
      • order

        int order
        Injection order regarding other annotations.
        Returns:
        injection order regarding other annotations
        Default:
        0