PackageModifiedEventArgs<T> Class

  • java.lang.Object
    • system.fabric.PackageModifiedEventArgs<T>

Type Parameters

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:

oldPackage - old Code, Config or Data package.
newPackage - new Code, Config or Data package. See CodePackage, ConfigurationPackage and DataPackage.

Method Details

getNewPackage

public T getNewPackage()

Gets the code, data, or configuration package that replaces the old package in the Service Manifest.

Returns:

Code, data, or configuration package that replaces the old package in the Service Manifest.

getOldPackage

public T getOldPackage()

Gets the code, data, or configuration package that was replaced in the Service Manifest.

Returns:

Code, data, or configuration package that was replaced in the Service Manifest.

setNewPackage

public void setNewPackage(T newPackage)

Sets the code, data, or configuration package that replaces the old package in the Service Manifest.

Parameters:

newPackage - Code, data, or configuration package that replaces the old package in the Service Manifest.

setOldPackage

public void setOldPackage(T oldPackage)

Sets the code, data, or configuration package that was replaced in the Service Manifest.

Parameters:

oldPackage - Code, data, or configuration package that was replaced in the Service Manifest.

Applies to