Package io.microsphere.classloading
Interface ArtifactResourceResolver
-
- All Superinterfaces:
java.lang.Comparable<Prioritized>,Prioritized
- All Known Implementing Classes:
AbstractArtifactResourceResolver,ArchiveFileArtifactResourceResolver,ManifestArtifactResourceResolver,MavenArtifactResourceResolver,StreamArtifactResourceResolver
public interface ArtifactResourceResolver extends Prioritized
ArtifactResourceResolverinterface is responsible for resolving resources related to anArtifact. Implementations of this interface are expected to handle the resolution of artifact resources from a given URL, such as archive files or directories.Implementations should define how the specific resource (e.g., JAR file, exploded directory) should be interpreted and converted into an appropriate
Artifactinstance.Example Usage
public class MyArtifactResourceResolver implements ArtifactResourceResolver { public Artifact resolve(URL resourceURL) { // Implementation logic to convert the URL to an Artifact return new DefaultArtifact(resourceURL); } }
-
-
Field Summary
-
Fields inherited from interface io.microsphere.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Artifactresolve(java.net.URL resourceURL)Resolve an instanceArtifactfromthe resourceof artifact.-
Methods inherited from interface io.microsphere.lang.Prioritized
compareTo, getPriority
-
-