org.apache.maven.scm.command
Class AbstractCommand

java.lang.Object
  extended byorg.apache.maven.scm.command.AbstractCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
AbstractAddCommand, AbstractBranchCommand, AbstractChangeLogCommand, AbstractCheckInCommand, AbstractCheckOutCommand, AbstractDiffCommand, AbstractEditCommand, AbstractFileInfoCommand, AbstractListFilesCommand, AbstractLockCommand, AbstractLoginCommand, AbstractLoginCommand, AbstractRemoveCommand, AbstractStatusCommand, AbstractTagCommand, AbstractUnEditCommand, AbstractUnlockCommand, AbstractUpdateCommand

public abstract class AbstractCommand
extends java.lang.Object
implements Command

Version:
$Id: AbstractCommand.java 372209 2006-01-25 13:30:01Z evenisse $
Author:
Emmanuel Venisse, Trygve Laugstøl

Field Summary
 
Fields inherited from interface org.apache.maven.scm.command.Command
ROLE
 
Constructor Summary
AbstractCommand()
           
 
Method Summary
 ScmResult execute(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)
           
protected abstract  ScmResult executeCommand(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)
           
 ScmLogger getLogger()
           
 void setLogger(ScmLogger logger)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCommand

public AbstractCommand()
Method Detail

executeCommand

protected abstract ScmResult executeCommand(ScmProviderRepository repository,
                                            ScmFileSet fileSet,
                                            CommandParameters parameters)
                                     throws ScmException
Throws:
ScmException

execute

public final ScmResult execute(ScmProviderRepository repository,
                               ScmFileSet fileSet,
                               CommandParameters parameters)
                        throws ScmException
Specified by:
execute in interface Command
Throws:
ScmException

getLogger

public final ScmLogger getLogger()
Specified by:
getLogger in interface Command
See Also:
Command.getLogger()

setLogger

public final void setLogger(ScmLogger logger)
Specified by:
setLogger in interface Command
See Also:
Command.setLogger(org.apache.maven.scm.log.ScmLogger)


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