PackageModifiedEventArgs<T> Class
- java.
lang. Object - system.
fabric. PackageModifiedEventArgs<T>
- system.
Type Parameters
- T
Type of the package being described. See CodePackage, ConfigurationPackage and DataPackage. Also see getCodePackageRemovedEvent(), getConfigurationPackageRemovedEvent() and getDataPackageRemovedEvent().
public class PackageModifiedEventArgs
Describes a package modified event.
Constructor Summary
Constructor | Description |
---|---|
PackageModifiedEventArgs(T oldPackage, T newPackage) |
Creates a new instance of the PackageRemovedEventArgs<T> class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
T |
getNewPackage()
Gets the code, data, or configuration package that replaces the old package in the Service Manifest. |
T |
getOldPackage()
Gets the code, data, or configuration package that was replaced in the Service Manifest. |
void |
setNewPackage(T newPackage)
Sets the code, data, or configuration package that replaces the old package in the Service Manifest. |
void |
setOldPackage(T oldPackage)
Sets the code, data, or configuration package that was replaced in the Service Manifest. |
Constructor Details
PackageModifiedEventArgs
public PackageModifiedEventArgs(T oldPackage, T newPackage)
Creates a new instance of the PackageRemovedEventArgs<T> class.
Parameters:
Method Details
getNewPackage
public T getNewPackage()
Gets the code, data, or configuration package that replaces the old package in the Service Manifest.
Returns:
getOldPackage
public T getOldPackage()
Gets the code, data, or configuration package that was replaced in the Service Manifest.
Returns:
setNewPackage
public void setNewPackage(T newPackage)
Sets the code, data, or configuration package that replaces the old package in the Service Manifest.
Parameters:
setOldPackage
public void setOldPackage(T oldPackage)
Sets the code, data, or configuration package that was replaced in the Service Manifest.
Parameters: