| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.deployment.ModuleIDBuilder
public class ModuleIDBuilder
A utility class to flesh out any incomplete Module IDs (formerly known as config IDs) encountered during the course of a deployment. For example, an EAR may have a module ID with only an artifactId, and contain a web app with no Geronimo plan and an EJB JAR with a module ID with no version.
| Constructor Summary | |
|---|---|
ModuleIDBuilder()
 | 
|
| Method Summary | |
|---|---|
 org.apache.geronimo.kernel.repository.Artifact | 
createDefaultArtifact(String defaultArtifact,
                                           String defaultType)
Creates a new artifact using entirely default values.  | 
 org.apache.geronimo.kernel.repository.Artifact | 
resolve(org.apache.geronimo.kernel.repository.Artifact argument,
               String defaultType)
Translates the argument Artifact to a fully-resolved Artifact, which is returned.  | 
 void | 
resolve(org.apache.geronimo.kernel.repository.Environment environment,
               String defaultArtifactId,
               String defaultType)
Guarantees that the argument Environment will have a present and fully qualified module ID when this method returns.  | 
 void | 
setDefaultGroup(String defaultGroup)
If an EAR is going to pass this module ID builder to its children, it can use this to set the default groupId to be its own.  | 
 void | 
setDefaultVersion(org.apache.geronimo.kernel.repository.Version defaultVersion)
If an EAR is going to pass this module ID builder to its children, it can use this to set the default version to be its own.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ModuleIDBuilder()
| Method Detail | 
|---|
public void setDefaultGroup(String defaultGroup)
public void setDefaultVersion(org.apache.geronimo.kernel.repository.Version defaultVersion)
public org.apache.geronimo.kernel.repository.Artifact resolve(org.apache.geronimo.kernel.repository.Artifact argument,
                                                              String defaultType)
argument - The artifact to reviewdefaultType - The type to use if the artifact to review has no
                     type specified
IllegalArgumentException - Occurs when the argument artifact does
                                  not have an artifactId
public org.apache.geronimo.kernel.repository.Artifact createDefaultArtifact(String defaultArtifact,
                                                                            String defaultType)
defaultArtifact - The artifactId to use for the new ArtifactdefaultType - The type to use for the new Artifact
public void resolve(org.apache.geronimo.kernel.repository.Environment environment,
                    String defaultArtifactId,
                    String defaultType)
environment - The Environment to check and populatedefaultArtifactId - The artifactId to use if the Envrionment does
                           not have a module ID at alldefaultType - The type to use if the Environment is lacking
                           a module ID or the module ID is lacking a type
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||