Home » geronimo-2.2-source-release » org.apache.geronimo.kernel.repository » [javadoc | source]
org.apache.geronimo.kernel.repository
public interface: ArtifactResolver [javadoc | source]

All Known Implementing Classes:
    DefaultArtifactResolver, ExplicitDefaultArtifactResolver, AliasedArtifactResolver, OptionalExplicitDefaultArtifactResolver, LocalAliasedArtifactResolver

Method from org.apache.geronimo.kernel.repository.ArtifactResolver Summary:
generateArtifact,   queryArtifact,   queryArtifacts,   resolveInClassLoader,   resolveInClassLoader,   resolveInClassLoader,   resolveInClassLoader
Method from org.apache.geronimo.kernel.repository.ArtifactResolver Detail:
 public Artifact generateArtifact(Artifact source,
    String defaultType)
    Used to generate a fully-populated Artifact from a partially-populated Artifact when you're about to deploy/save a new artifact. That is, this method comes up with reasonable default values that hopefully do not conflict with anything that's already deployed.
 public Artifact queryArtifact(Artifact artifact) throws MultipleMatchesException
    Used to search for existing artifacts in the server that match the supplied artifact (which may be partially-populated). This method expects either no results or one result (multiple matches is an error).
 public Artifact[] queryArtifacts(Artifact artifact)
    Used to search for existing artifacts in the server that match the supplied artifact (which may be partially-populated).

    TODO: The artifacts should be sorted ascending by type then group then artifact then version

 public Artifact resolveInClassLoader(Artifact source) throws MissingDependencyException
    Used to search for existing artifacts that match the supplied artifact (which may be partially-populated). Preference is given to artifacts that are already loaded, to reduce duplication. If nothing can be found that's an error, because something depends on this.
 public LinkedHashSet<Artifact> resolveInClassLoader(Collection<Artifact> sources) throws MissingDependencyException
    Used to search for existing artifacts that match the supplied artifact (which may be partially-populated). Preference is given to artifacts that are already loaded, to reduce duplication. If nothing can be found that's an error, because something depends on this.
 public Artifact resolveInClassLoader(Artifact source,
    Collection<Configuration> parentConfigurations) throws MissingDependencyException
    Used to search for existing artifacts that match the supplied artifact (which may be partially-populated). Preference is given to artifacts that are already loaded, or that exist in the parent configurations, to reduce duplication. If nothing can be found that's an error, because something depends on this.
 public LinkedHashSet<Artifact> resolveInClassLoader(Collection<Artifact> sources,
    Collection<Configuration> parentConfigurations) throws MissingDependencyException
    Used to search for existing artifacts that match the supplied artifact (which may be partially-populated). Preference is given to artifacts that are already loaded, or that exist in the parent configurations, to reduce duplication. If nothing can be found that's an error, because something depends on this.