public class BundleInfo extends Object implements Serializable
| Constructor and Description |
|---|
BundleInfo(BundleBucketInfo bucketInfo,
String version)
Create an instance of this class.
|
BundleInfo(String symbolicName,
String version)
Create an instance of this class.
|
BundleInfo(String groupId,
String symbolicName,
String version)
Create an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static BundleInfo |
fromBundle(org.osgi.framework.Bundle bundle)
Creates the
BundleInfo instance using provided bundle. |
static BundleInfo |
fromKey(String key)
Creates the
BundleInfo instance using provided bundle key. |
static BundleInfo |
fromModuleInfo(String moduleId,
String moduleVersion)
Create a
BundleInfo instance using provided module ID and version. |
String |
getGroupId() |
String |
getKey() |
String |
getSymbolicName() |
String |
getVersion() |
int |
hashCode() |
String |
toString() |
public BundleInfo(String symbolicName, String version)
symbolicName - The symbolic name of this bundleversion - The version of this bundlepublic BundleInfo(String groupId, String symbolicName, String version)
groupId - The ID of the group for this bundlesymbolicName - The symbolic name of this bundleversion - The version of this bundlepublic BundleInfo(BundleBucketInfo bucketInfo, String version)
bucketInfo - The bucket this bundle belongs toversion - The version of this bundlepublic static BundleInfo fromBundle(org.osgi.framework.Bundle bundle)
BundleInfo instance using provided bundle.bundle - the bundle to compose info forBundleInfo instance using provided bundlepublic static BundleInfo fromKey(String key)
BundleInfo instance using provided bundle key.key - The bundle keyBundleInfo instance using provided bundle keypublic static BundleInfo fromModuleInfo(String moduleId, String moduleVersion)
BundleInfo instance using provided module ID and version.moduleId - The ID of the modulemoduleVersion - The module versionBundleInfo instance using provided module ID and versionpublic String getGroupId()
public String getKey()
public String getSymbolicName()
public String getVersion()
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.