|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.client.builder.OptionalExplicitDefaultArtifactResolver
public class OptionalExplicitDefaultArtifactResolver
This class is intended to get around some problems using the normal ExplicitDefaultArtifactResolver for client building. We really want it to refer to the server's client_artifact_aliases.properties file, but that isn't available when run from the car-maven-plugin. Also the ServerInfo is missing and the ArtifactManager is not in a parent configuration (the car-maven-plugin starts a configuration that isn't a parent of anything. We might be able to fix that by a use of artifact_aliases.properties itself, but that might be for later).
| Field Summary | |
|---|---|
static GBeanInfo |
GBEAN_INFO
|
| Constructor Summary | |
|---|---|
OptionalExplicitDefaultArtifactResolver(String versionMapLocation,
Collection<ArtifactManager> artifactManagers,
Collection<ListableRepository> repositories,
Collection<ServerInfo> serverInfos,
Collection<ArtifactResolver> fallbackResolver)
|
|
| Method Summary | |
|---|---|
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. |
static GBeanInfo |
getGBeanInfo()
|
Artifact |
queryArtifact(Artifact artifact)
Used to search for existing artifacts in the server that match the supplied artifact (which may be partially-populated). |
Artifact[] |
queryArtifacts(Artifact artifact)
Used to search for existing artifacts in the server that match the supplied artifact (which may be partially-populated). |
Artifact |
resolveInClassLoader(Artifact source)
Used to search for existing artifacts that match the supplied artifact (which may be partially-populated). |
Artifact |
resolveInClassLoader(Artifact source,
Collection parentConfigurations)
Used to search for existing artifacts that match the supplied artifact (which may be partially-populated). |
LinkedHashSet |
resolveInClassLoader(Collection artifacts)
Used to search for existing artifacts that match the supplied artifact (which may be partially-populated). |
LinkedHashSet |
resolveInClassLoader(Collection artifacts,
Collection parentConfigurations)
Used to search for existing artifacts that match the supplied artifact (which may be partially-populated). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final GBeanInfo GBEAN_INFO
| Constructor Detail |
|---|
public OptionalExplicitDefaultArtifactResolver(String versionMapLocation,
Collection<ArtifactManager> artifactManagers,
Collection<ListableRepository> repositories,
Collection<ServerInfo> serverInfos,
Collection<ArtifactResolver> fallbackResolver)
throws IOException
IOException| Method Detail |
|---|
public Artifact generateArtifact(Artifact source,
String defaultType)
ArtifactResolver
generateArtifact in interface ArtifactResolversource - The artifact to complete (normally partially-resolved)defaultType - The type to use for the resulting artifact if the source
artifact doesn't have a type set
public Artifact resolveInClassLoader(Artifact source)
throws MissingDependencyException
ArtifactResolver
resolveInClassLoader in interface ArtifactResolversource - incompletely resolved Artifact
MissingDependencyException - if no matching Artifact can be found.
public Artifact resolveInClassLoader(Artifact source,
Collection parentConfigurations)
throws MissingDependencyException
ArtifactResolver
resolveInClassLoader in interface ArtifactResolversource - incompletely resolved ArtifactparentConfigurations - A Collection with entries of type Configuration
MissingDependencyException - if no matching Artifact can be found.
public LinkedHashSet resolveInClassLoader(Collection artifacts)
throws MissingDependencyException
ArtifactResolver
resolveInClassLoader in interface ArtifactResolverartifacts - incompletely resolved Artifact
MissingDependencyException - if no matching Artifact can be found.
public LinkedHashSet resolveInClassLoader(Collection artifacts,
Collection parentConfigurations)
throws MissingDependencyException
ArtifactResolver
resolveInClassLoader in interface ArtifactResolverartifacts - incompletely resolved Artifacts to matchparentConfigurations - Configurations to search in
MissingDependencyException - if no matching Artifact can be found.
public Artifact queryArtifact(Artifact artifact)
throws MultipleMatchesException
ArtifactResolver
queryArtifact in interface ArtifactResolverartifact - incompletely resolved artifact to match
MultipleMatchesException - if there is more than one matchpublic Artifact[] queryArtifacts(Artifact artifact)
ArtifactResolver
queryArtifacts in interface ArtifactResolverartifact - the Artifact to match.
public static GBeanInfo getGBeanInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||