Package io.microsphere.classloading
Class ArchiveFileArtifactResourceResolver
- java.lang.Object
-
- io.microsphere.classloading.AbstractArtifactResourceResolver
-
- io.microsphere.classloading.ArchiveFileArtifactResourceResolver
-
- All Implemented Interfaces:
ArtifactResourceResolver,Prioritized,java.lang.Comparable<Prioritized>
public class ArchiveFileArtifactResourceResolver extends AbstractArtifactResourceResolver
DefaultArtifactResourceResolverbased on the archive file- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
ArtifactResourceResolver
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_PRIORITY-
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 ArchiveFileArtifactResourceResolver()ArchiveFileArtifactResourceResolver(int priority)ArchiveFileArtifactResourceResolver(java.lang.ClassLoader classLoader, int priority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Artifactresolve(java.net.URL resourceURL)Resolve an instanceArtifactfromthe resourceof artifact.-
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
-
DEFAULT_PRIORITY
public static final int DEFAULT_PRIORITY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ArchiveFileArtifactResourceResolver
public ArchiveFileArtifactResourceResolver()
-
ArchiveFileArtifactResourceResolver
public ArchiveFileArtifactResourceResolver(int priority)
-
ArchiveFileArtifactResourceResolver
public ArchiveFileArtifactResourceResolver(java.lang.ClassLoader classLoader, int priority)
-
-
Method Detail
-
resolve
public Artifact resolve(java.net.URL resourceURL)
Description copied from interface:ArtifactResourceResolverResolve an instanceArtifactfromthe resourceof artifact.- Parameters:
resourceURL-the resourceof artifact, it may the archive file or the directory- Returns:
- an instance
Artifactif found, otherwisenull
-
-