Package io.microsphere.classloading
Class MavenArtifactResourceResolver
- java.lang.Object
-
- io.microsphere.classloading.AbstractArtifactResourceResolver
-
- io.microsphere.classloading.StreamArtifactResourceResolver
-
- io.microsphere.classloading.MavenArtifactResourceResolver
-
- All Implemented Interfaces:
ArtifactResourceResolver,Prioritized,java.lang.Comparable<Prioritized>
public class MavenArtifactResourceResolver extends StreamArtifactResourceResolver
ArtifactResourceResolverfor Maven- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
ArtifactResourceResolver
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringARTIFACT_ID_PROPERTY_NAMEstatic intDEFAULT_PRIORITYstatic java.lang.StringGROUP_ID_PROPERTY_NAMEstatic java.lang.StringMAVEN_POM_PROPERTIES_RESOURCE_PREFIXstatic java.lang.StringMAVEN_POM_PROPERTIES_RESOURCE_SUFFIXstatic java.lang.StringVERSION_PROPERTY_NAME-
Fields inherited from class io.microsphere.classloading.AbstractArtifactResourceResolver
classLoader, logger, priority
-
Fields inherited from interface io.microsphere.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description MavenArtifactResourceResolver()MavenArtifactResourceResolver(int priority)MavenArtifactResourceResolver(java.lang.ClassLoader classLoader, int priority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisArtifactMetadata(java.lang.String relativePath)protected Artifactresolve(java.net.URL resourceURL, java.io.InputStream artifactMetadataData, java.lang.ClassLoader classLoader)-
Methods inherited from class io.microsphere.classloading.StreamArtifactResourceResolver
findArtifactMetadata, findArtifactMetadataEntry, isArtifactMetadataEntry, isArtifactMetadataFile, readArtifactMetadataDataFromArchiveFile, readArtifactMetadataDataFromDirectory, readArtifactMetadataDataFromFile, readArtifactMetadataDataFromResource, resolve
-
Methods inherited from class io.microsphere.classloading.AbstractArtifactResourceResolver
getPriority, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.microsphere.lang.Prioritized
compareTo
-
-
-
-
Field Detail
-
MAVEN_POM_PROPERTIES_RESOURCE_PREFIX
public static final java.lang.String MAVEN_POM_PROPERTIES_RESOURCE_PREFIX
- See Also:
- Constant Field Values
-
MAVEN_POM_PROPERTIES_RESOURCE_SUFFIX
public static final java.lang.String MAVEN_POM_PROPERTIES_RESOURCE_SUFFIX
- See Also:
- Constant Field Values
-
GROUP_ID_PROPERTY_NAME
public static final java.lang.String GROUP_ID_PROPERTY_NAME
- See Also:
- Constant Field Values
-
ARTIFACT_ID_PROPERTY_NAME
public static final java.lang.String ARTIFACT_ID_PROPERTY_NAME
- See Also:
- Constant Field Values
-
VERSION_PROPERTY_NAME
public static final java.lang.String VERSION_PROPERTY_NAME
- See Also:
- Constant Field Values
-
DEFAULT_PRIORITY
public static final int DEFAULT_PRIORITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
isArtifactMetadata
protected boolean isArtifactMetadata(java.lang.String relativePath)
- Specified by:
isArtifactMetadatain classStreamArtifactResourceResolver
-
resolve
protected Artifact resolve(java.net.URL resourceURL, java.io.InputStream artifactMetadataData, java.lang.ClassLoader classLoader) throws java.io.IOException
- Specified by:
resolvein classStreamArtifactResourceResolver- Throws:
java.io.IOException
-
-