net.sourceforge.osgi.deployment.maven.container
Class BundleResource

java.lang.Object
  extended by net.sourceforge.osgi.deployment.maven.container.BundleResource
All Implemented Interfaces:
IResource

public class BundleResource
extends java.lang.Object
implements IResource

From the Deployment Admin Specification:

A Deployment Package consists of installable resources. Resources are described in the Name sections of the Manifest. They are stored in the JAR file under a path. This path is called the resource id. Subsets of these resources are the bundles. Bundles are treated differently from the other resources by the Deployment Admin service.

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

Constructor Summary
BundleResource()
          Constructor which initializes the instance of the BundleResource.
 
Method Summary
 java.lang.String getArtifactId()
           
 IDeploymentPluginContext getContext()
           
 java.lang.String getGroupId()
           
 java.io.File getResolvedFile()
           
 java.lang.String getResourceId()
          The resourceId of the resource specifies the path and the name of the resource.
 java.lang.String getTargetPath()
           
 java.lang.String getVersion()
           
 boolean isCustomizer()
           
 void setArtifactId(java.lang.String p_artifactId)
           
 void setContext(IDeploymentPluginContext p_context)
           
 void setCustomizer(boolean p_customizer)
           
 void setDeploymentContext(IDeploymentPluginContext p_context)
           
 void setGroupId(java.lang.String p_groupId)
           
 void setResolvedFile(java.io.File p_resolvedFile)
           
 void setTargetPath(java.lang.String p_targetPath)
           
 void setVersion(java.lang.String p_version)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BundleResource

public BundleResource()
Constructor which initializes the instance of the BundleResource.

Method Detail

setDeploymentContext

public final void setDeploymentContext(IDeploymentPluginContext p_context)
Parameters:
p_context - the context to set

getResourceId

public final java.lang.String getResourceId()
Description copied from interface: IResource
The resourceId of the resource specifies the path and the name of the resource. Implementations can directly return the resourceId or compute it.

Specified by:
getResourceId in interface IResource
Returns:
the path and the name of the resource
See Also:
IResource.getResourceId()

getTargetPath

public final java.lang.String getTargetPath()
Returns:
the targetPath

setTargetPath

public final void setTargetPath(java.lang.String p_targetPath)
Parameters:
p_targetPath - the targetPath to set

isCustomizer

public final boolean isCustomizer()
Returns:
the customizer

setCustomizer

public final void setCustomizer(boolean p_customizer)
Parameters:
p_customizer - the customizer to set

getGroupId

public final java.lang.String getGroupId()
Returns:
the groupId

setGroupId

public final void setGroupId(java.lang.String p_groupId)
Parameters:
p_groupId - the groupId to set

getArtifactId

public final java.lang.String getArtifactId()
Returns:
the artifactId

setArtifactId

public final void setArtifactId(java.lang.String p_artifactId)
Parameters:
p_artifactId - the artifactId to set

getVersion

public final java.lang.String getVersion()
Returns:
the version

setVersion

public final void setVersion(java.lang.String p_version)
Parameters:
p_version - the version to set

getContext

public final IDeploymentPluginContext getContext()
Returns:
the context

setContext

public final void setContext(IDeploymentPluginContext p_context)
Parameters:
p_context - the context to set

getResolvedFile

public final java.io.File getResolvedFile()
Returns:
the resolvedFile

setResolvedFile

public final void setResolvedFile(java.io.File p_resolvedFile)
Parameters:
p_resolvedFile - the resolvedFile to set

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a string representation of a BundleResource.
See Also:
Object.toString()


Copyright © 2008 Humboldt University Berlin. All Rights Reserved.