org.apache.felix.deploymentadmin
Class BundleInfoImpl

java.lang.Object
  extended by org.apache.felix.deploymentadmin.AbstractInfo
      extended by org.apache.felix.deploymentadmin.BundleInfoImpl
All Implemented Interfaces:
BundleInfo

public class BundleInfoImpl
extends AbstractInfo
implements BundleInfo

Implementation of the BundleInfo interface as defined by the OSGi mobile specification.


Constructor Summary
BundleInfoImpl(String path, Attributes attributes)
          Creates an instance of this class.
 
Method Summary
 String getSymbolicName()
          Returns the Bundle Symbolic Name of the represented bundle.
 Version getVersion()
          Returns the version of the represented bundle.
static boolean isBundleResource(Attributes attributes)
          Verify if the specified attributes describe a bundle resource.
 boolean isCustomizer()
          Determine whether this bundle resource is a customizer bundle.
 
Methods inherited from class org.apache.felix.deploymentadmin.AbstractInfo
getHeader, getPath, isMissing, parseBooleanHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleInfoImpl

public BundleInfoImpl(String path,
                      Attributes attributes)
               throws DeploymentException
Creates an instance of this class.

Parameters:
path - The path / resource-id of the bundle resource.
attributes - Set of attributes describing the bundle resource.
Throws:
DeploymentException - If the specified attributes do not describe a valid bundle.
Method Detail

getSymbolicName

public String getSymbolicName()
Description copied from interface: BundleInfo
Returns the Bundle Symbolic Name of the represented bundle.

Specified by:
getSymbolicName in interface BundleInfo
Returns:
the Bundle Symbolic Name

getVersion

public Version getVersion()
Description copied from interface: BundleInfo
Returns the version of the represented bundle.

Specified by:
getVersion in interface BundleInfo
Returns:
the version of the represented bundle

isCustomizer

public boolean isCustomizer()
Determine whether this bundle resource is a customizer bundle.

Returns:
True if the bundle is a customizer bundle, false otherwise.

isBundleResource

public static boolean isBundleResource(Attributes attributes)
Verify if the specified attributes describe a bundle resource.

Parameters:
attributes - Attributes describing the resource
Returns:
true if the attributes describe a bundle resource, false otherwise


Copyright © 2011 Apache Software Foundation. All Rights Reserved.