com.arsdigita.kernel
Interface PackageEventListener


public interface PackageEventListener

An interface for listening to the events of a package listener. Package Listeners are registered according to PackageTypes using the addListener() method. Note: The APIs for this class have not been reviewed and are subject to change after review.

Since:
ACS 5.0
Version:
$Revision: #6 $, $Date: 2004/04/07 $
See Also:
PackageType.addListener(java.lang.String)

Field Summary
static String versionId
           
 
Method Summary
 void onCreate(PackageInstance pkg)
          Called when a new package instance is created.
 void onDelete(PackageInstance pkg)
          Describe onDelete method here.
 void onMount(SiteNode siteNode, PackageInstance pkg)
          Called when a package instance is mounted on a siteNode.
 void onUnmount(SiteNode siteNode, PackageInstance pkg)
          Called when a package instance is unmounted from a siteNode.
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Method Detail

onMount

public void onMount(SiteNode siteNode,
                    PackageInstance pkg)
Called when a package instance is mounted on a siteNode.

Parameters:
siteNode - the SiteNode where the instance is mounted
pkg - the instance being mounted

onUnmount

public void onUnmount(SiteNode siteNode,
                      PackageInstance pkg)
Called when a package instance is unmounted from a siteNode.

Parameters:
siteNode - the SiteNode where the instance is mounted
pkg - the instance being unmounted

onCreate

public void onCreate(PackageInstance pkg)
Called when a new package instance is created.

Parameters:
pkg - a PackageInstance value

onDelete

public void onDelete(PackageInstance pkg)
Describe onDelete method here.

Parameters:
pkg - a PackageInstance value


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC