net.sourceforge.osgi.deployment.maven
Interface IDeploymentPluginContext

All Known Implementing Classes:
DeploymentPluginMojoContext

public interface IDeploymentPluginContext

The deployment context provides all relevant data to the deployment plugin. Currently it depends on maven classes and interfaces, but the idea is to abstract from maven in order to use the deployment plugin with other technologies.

Author:
Siamak Haschemi, haschemi@informatik.hu-berlin.de

Method Summary
 org.codehaus.plexus.archiver.manager.ArchiverManager getArchiverManager()
           
 org.apache.maven.artifact.factory.ArtifactFactory getArtifactFactory()
           
 org.apache.maven.artifact.handler.manager.ArtifactHandlerManager getArtifactHandlerManager()
           
 org.apache.maven.artifact.resolver.ArtifactResolver getArtifactResolver()
           
 java.io.File getBaseDir()
           
 java.lang.String getBuildDirectory()
           
 DeploymentPackageInfo getDeploymentPackageInfo()
           
 org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
           
 org.apache.maven.plugin.logging.Log getLogger()
           
 java.io.File getManifestLocation()
           
 java.io.File getOutputDirectory()
           
 java.lang.String getPluginName()
          Returns the name of the plugin.
 java.lang.String getPluginVersion()
          Returns the plugin version.
 org.apache.maven.project.MavenProject getProject()
           
 java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteRepositories()
           
 java.util.List<java.lang.String> getSupportedProjectTypes()
           
 boolean isWriteExtraData()
           
 java.io.File resolveResource(java.lang.String p_groupId, java.lang.String p_artifactId, java.lang.String p_version)
          This method resolves an artifact on all available repositories and returns the file handle to that artifact.
 

Method Detail

getLogger

org.apache.maven.plugin.logging.Log getLogger()
Returns:
the Maven logger

getOutputDirectory

java.io.File getOutputDirectory()
Returns:
the outputDirectory

getBaseDir

java.io.File getBaseDir()
Returns:
the baseDir

getManifestLocation

java.io.File getManifestLocation()
Returns:
the manifestLocation

getProject

org.apache.maven.project.MavenProject getProject()
Returns:
the project

getBuildDirectory

java.lang.String getBuildDirectory()
Returns:
the buildDirectory

getSupportedProjectTypes

java.util.List<java.lang.String> getSupportedProjectTypes()
Returns:
the supportedProjectTypes

getLocalRepository

org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
Returns:
the localRepository

getRemoteRepositories

java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteRepositories()
Returns:
the remoteRepositories

getArtifactFactory

org.apache.maven.artifact.factory.ArtifactFactory getArtifactFactory()
Returns:
the artifactFactory

getArtifactResolver

org.apache.maven.artifact.resolver.ArtifactResolver getArtifactResolver()
Returns:
the artifactResolver

getArtifactHandlerManager

org.apache.maven.artifact.handler.manager.ArtifactHandlerManager getArtifactHandlerManager()
Returns:
the artifactHandlerManager

getArchiverManager

org.codehaus.plexus.archiver.manager.ArchiverManager getArchiverManager()
Returns:
the archiverManager

getDeploymentPackageInfo

DeploymentPackageInfo getDeploymentPackageInfo()
Returns:
the deploymentPackage

isWriteExtraData

boolean isWriteExtraData()
Returns:
the writeExtraData

getPluginName

java.lang.String getPluginName()
Returns the name of the plugin.

Returns:
the name of the plugin

getPluginVersion

java.lang.String getPluginVersion()
Returns the plugin version.

Returns:
the plugin version

resolveResource

java.io.File resolveResource(java.lang.String p_groupId,
                             java.lang.String p_artifactId,
                             java.lang.String p_version)
This method resolves an artifact on all available repositories and returns the file handle to that artifact.

Parameters:
p_groupId - the groupId of the artifact to resolve
p_artifactId - the artifactId of the artifact to resolve
p_version - the version of the artifact to resolve
Returns:
the resolved file handle of the artifact


Copyright © 2008 Humboldt University Berlin. All Rights Reserved.