private final String mActivatorName;
private final String mLibraryPath;
private final String mVersion;
+ private boolean mActivated; // not final since it might be modified for Android-specific bundles
private RcsBundleInfo(String id, String path, String activatorName,
String libraryPath, String version) {
mActivatorName = activatorName;
mLibraryPath = libraryPath;
mVersion = version;
+ mActivated = false;
+ }
+
+ private RcsBundleInfo(String id, String path, String activatorName,
+ String libraryPath, String version, boolean activated) {
+ mId = id;
+ mPath = path;
+ mActivatorName = activatorName;
+ mLibraryPath = libraryPath;
+ mVersion = version;
+ mActivated = activated;
}
/**
* API for getting the Id of the bundle
- *
+ *
* @return string - Id of the bundle
- *
+ *
*/
public String getID() {
return mId;
/**
* API for getting the path of the bundle
- *
+ *
* @return path - path of the bundle
- *
+ *
*/
public String getPath() {
return mPath;
/**
* API for setting the Activator name for the bundle
- *
+ *
* @return string - Name of the activator
- *
+ *
*/
public String getActivatorName() {
return mActivatorName;
/**
* API for getting the library path for the bundle
- *
+ *
* @return string - Library path in string form
- *
+ *
*/
public String getLibraryPath() {
return mLibraryPath;
/**
* API for getting the version of the bundle
- *
+ *
* @return string - version of the bundle
- *
+ *
*/
public String getVersion() {
return mVersion;
}
+
+ /**
+ * Returns the current activation status of the bundle
+ *
+ * @return boolean - bundle has been successfully loaded and started
+ *
+ */
+ public boolean isActivated() {
+ return mActivated;
+ }
+ /**
+ * Set the current activation status of the bundle
+ *
+ * @return boolean - bundle has been successfully loaded and started
+ *
+ */
+ protected void setActivated(boolean activated) {
+ mActivated = activated;
+ }
}