org.apache.felix.deploymentadmin
Class BundleInfoImpl
java.lang.Object
org.apache.felix.deploymentadmin.AbstractInfo
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
getSymbolicName
public String getSymbolicName()
- Specified by:
getSymbolicName
in interface BundleInfo
getVersion
public Version getVersion()
- Specified by:
getVersion
in interface BundleInfo
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 © 2006-2011 Apache Software Foundation. All Rights Reserved.