org.apache.felix.deploymentadmin.spi
Class ProcessResourceCommand

java.lang.Object
  extended by org.apache.felix.deploymentadmin.spi.Command
      extended by org.apache.felix.deploymentadmin.spi.ProcessResourceCommand

public class ProcessResourceCommand
extends Command

Command that processes all the processed resources in the source deployment package of a deployment session by finding their Resource Processors and having those process the resources.


Constructor Summary
ProcessResourceCommand(CommitResourceCommand commitCommand)
          Creates an instance of this command, the CommitCommand is used to ensure that all used ResourceProcessors will be committed at a later stage in the deployment session.
 
Method Summary
 void execute(DeploymentSessionImpl session)
          Executes the command, the specified DeploymentSession can be used to obtain various information about the deployment session which the command is part of.
 
Methods inherited from class org.apache.felix.deploymentadmin.spi.Command
addCommit, addRollback, cancel, commit, isCancelled, rollback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessResourceCommand

public ProcessResourceCommand(CommitResourceCommand commitCommand)
Creates an instance of this command, the CommitCommand is used to ensure that all used ResourceProcessors will be committed at a later stage in the deployment session.

Parameters:
commitCommand - The CommitCommand that will commit all resource processors used in this command.
Method Detail

execute

public void execute(DeploymentSessionImpl session)
             throws DeploymentException
Description copied from class: Command
Executes the command, the specified DeploymentSession can be used to obtain various information about the deployment session which the command is part of.

Specified by:
execute in class Command
Parameters:
session - The deployment session this command is part of.
Throws:
DeploymentException - Thrown if the command could not successfully execute.


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.