|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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<Repository> 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<Repository> repositories, Collection<ServerInfo> serverInfos, Collection<ArtifactResolver> fallbackResolver) throws IOException
IOException
Method Detail |
---|
public Artifact generateArtifact(Artifact source, String defaultType)
ArtifactResolver
generateArtifact
in interface ArtifactResolver
source
- The artifact to complete (normally partially-populated)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 ArtifactResolver
MissingDependencyException
public Artifact resolveInClassLoader(Artifact source, Collection parentConfigurations) throws MissingDependencyException
ArtifactResolver
resolveInClassLoader
in interface ArtifactResolver
parentConfigurations
- A Collection with entries of type Configuration
MissingDependencyException
public LinkedHashSet resolveInClassLoader(Collection artifacts) throws MissingDependencyException
ArtifactResolver
resolveInClassLoader
in interface ArtifactResolver
MissingDependencyException
public LinkedHashSet resolveInClassLoader(Collection artifacts, Collection parentConfigurations) throws MissingDependencyException
ArtifactResolver
resolveInClassLoader
in interface ArtifactResolver
parentConfigurations
- A Collection with entries of type Configuration
MissingDependencyException
public Artifact queryArtifact(Artifact artifact) throws MultipleMatchesException
ArtifactResolver
queryArtifact
in interface ArtifactResolver
MultipleMatchesException
public Artifact[] queryArtifacts(Artifact artifact)
ArtifactResolver
queryArtifacts
in interface ArtifactResolver
public static GBeanInfo getGBeanInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |