Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.jdeveloper.deploy
Interface ModuleDeploymentListener<T extends ArchiveProfile>

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
DefaultModuleDeploymentListener

public interface ModuleDeploymentListener<T extends ArchiveProfile>
extends java.util.EventListener

Listener interface for receiving cross-cutting Deployment events that cover Profile Definition, Packaging and Distribution of an Archive module.


Method Summary
 void deploymentCancelled(T profile, DeployShell shell)
          Called if the deployment is cancelled, either because of an error, or another listener throwing a VetoableDeployException.
 void moduleDistributed(T profile, DeployShell shell)
          Called after the packaged module has finished distributing successfully to a remote target.
 void modulePackaged(T profile, DeployShell shell)
          Called after the Packaging Deployer for the Profile has executed.
 void moduleWillDistribute(T profile, DeployShell shell)
          Called before the packaged module has been sent to an external target.
 void moduleWillPackage(T profile, DeployShell shell)
          Called before the Packaging Deployer for the Profile executes.
 void profileCreated(T profile, DeployShell shell)
          Called before a Deployment Profile is opened for editing.
 void profileExpanded(T profile, DeployShell shell)
          Called after all filegroups have been expanded to actual file URLs.
 void profileWillExpand(T profile, DeployShell shell)
          Called before the Project and Workspace files are enumerated to determine filegroup matches.
 void profileWillSave(T profile, DeployShell shell)
          Called after a Profile has been edited, but before it is closed and saved.
 

Method Detail

profileCreated

void profileCreated(T profile,
                    DeployShell shell)
                    throws VetoableDeployException
Called before a Deployment Profile is opened for editing. This can be used to pre-populate the Profile with FileGroups specific to the Project or Workspace being edited. Changes to the Profile will be persisted if the user hits Save in the UI.

Parameters:
profile - the Deployment Profile
shell - the context for this Deployment.
Throws:
VetoableDeployException - thrown to prevent editing

profileWillSave

void profileWillSave(T profile,
                     DeployShell shell)
                     throws VetoableDeployException
Called after a Profile has been edited, but before it is closed and saved. This can be used to add any last minute changes to the Profile that need to take the user's selection into account, before it is persisted.

Parameters:
profile -
shell - the context for the Deployment.
Throws:
VetoableDeployException - thrown to prevent a save of the Profile.

profileWillExpand

void profileWillExpand(T profile,
                       DeployShell shell)
                       throws VetoableDeployException
Called before the Project and Workspace files are enumerated to determine filegroup matches. Same as profileWillClose, but use this to make any changes to fileGroups that should not be persisted as part of the Profile definition.

Parameters:
profile -
shell - the context for the Deployment.
Throws:
VetoableDeployException

profileExpanded

void profileExpanded(T profile,
                     DeployShell shell)
                     throws VetoableDeployException
Called after all filegroups have been expanded to actual file URLs. Use this to add any last minute file URLs, or remove any from the final packaging file set.

Parameters:
profile -
shell - the context for the Deployment.
Throws:
VetoableDeployException

moduleWillPackage

void moduleWillPackage(T profile,
                       DeployShell shell)
                       throws VetoableDeployException
Called before the Packaging Deployer for the Profile executes.

Parameters:
profile -
shell -
Throws:
VetoableDeployException

modulePackaged

void modulePackaged(T profile,
                    DeployShell shell)
                    throws VetoableDeployException
Called after the Packaging Deployer for the Profile has executed.

Parameters:
profile -
shell -
Throws:
VetoableDeployException

moduleWillDistribute

void moduleWillDistribute(T profile,
                          DeployShell shell)
Called before the packaged module has been sent to an external target. This method may not be called if the module is being deployed locally, for e.g. to a local filesytem.

Parameters:
profile -
shell -

moduleDistributed

void moduleDistributed(T profile,
                       DeployShell shell)
Called after the packaged module has finished distributing successfully to a remote target.

Parameters:
profile -
shell -

deploymentCancelled

void deploymentCancelled(T profile,
                         DeployShell shell)
Called if the deployment is cancelled, either because of an error, or another listener throwing a VetoableDeployException.

Parameters:
profile -
shell -

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.