Class ManifestArtifactResourceResolver

    • Field Detail

      • DEFAULT_ARTIFACT_ID_ATTRIBUTE_NAMES_PROPERTY_VALUE

        public static final java.lang.String DEFAULT_ARTIFACT_ID_ATTRIBUTE_NAMES_PROPERTY_VALUE
        Default property value for attribute names used to extract the artifact ID from the MANIFEST file. The attributes are searched in order and the first non-null value is used as the artifact ID.

        The default attribute names are:

        • Bundle-Name - typically used in OSGi environments
        • Automatic-Module-Name - used for Java 9+ module systems
        • Implementation-Title - standard JAR manifest attribute
        See Also:
        Constant Field Values
      • DEFAULT_VERSION_ATTRIBUTE_NAMES_PROPERTY_VALUE

        public static final java.lang.String DEFAULT_VERSION_ATTRIBUTE_NAMES_PROPERTY_VALUE
        Default property value for attribute names used to extract the artifact version from the MANIFEST file. The attributes are searched in order and the first non-null value is used as the artifact version.

        The default attribute names are:

        • Bundle-Version - typically used in OSGi environments
        • Implementation-Version - standard JAR manifest attribute
        See Also:
        Constant Field Values
      • ARTIFACT_ID_ATTRIBUTE_NAMES_PROPERTY_NAME

        @ConfigurationProperty(type=java.lang.String[][].class,
                               defaultValue="Bundle-Name,Automatic-Module-Name,Implementation-Title",
                               description="The attribute names in the \'META-INF/MANIFEST\' resource are retrieved as the artifact id")
        public static final java.lang.String ARTIFACT_ID_ATTRIBUTE_NAMES_PROPERTY_NAME
        See Also:
        Constant Field Values
      • VERSION_ATTRIBUTE_NAMES_PROPERTY_NAME

        @ConfigurationProperty(type=java.lang.String[][].class,
                               defaultValue="Bundle-Version,Implementation-Version",
                               description="The attribute names in the \'META-INF/MANIFEST\' resource are retrieved as the artifact version")
        public static final java.lang.String VERSION_ATTRIBUTE_NAMES_PROPERTY_NAME
        See Also:
        Constant Field Values
      • DEFAULT_PRIORITY

        public static final int DEFAULT_PRIORITY
        Default priority value for the ManifestArtifactResourceResolver. This priority determines the order in which this resolver is used compared to others. Lower values indicate higher priority.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ManifestArtifactResourceResolver

        public ManifestArtifactResourceResolver()
      • ManifestArtifactResourceResolver

        public ManifestArtifactResourceResolver​(int priority)
      • ManifestArtifactResourceResolver

        public ManifestArtifactResourceResolver​(java.lang.ClassLoader classLoader,
                                                int priority)