Package org.jeasy.props.annotations
Annotation Type ManifestProperty
-
@Retention(RUNTIME) @Target(FIELD) public @interface ManifestProperty
This annotation injects a header from aMETA-INF/MANIFEST.MFfile in the annotated field.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringdefaultValueThe default value to set in case the header does not exist or cannot be loaded.booleanfailFastFlag to fail the configuration process if the header is absentintorderInjection order regarding other annotations.
-
-
-
Element Detail
-
jar
String jar
The jar file name (in the classpath) containing theMETA-INF/MANIFEST.MFfile.- Returns:
- jar file name (in the classpath) containing
META-INF/MANIFEST.MFfile.
-
-
-
header
String header
The header name in theMETA-INF/MANIFEST.MFfile.- Returns:
- the header name in the
META-INF/MANIFEST.MFfile.
-
-
-
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:
- ""
-
-