Package org.apache.maven.scm.command
Class AbstractCommand
- java.lang.Object
-
- org.apache.maven.scm.command.AbstractCommand
-
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
AbstractAccuRevCommand
,AbstractAddCommand
,AbstractBlameCommand
,AbstractBranchCommand
,AbstractChangeLogCommand
,AbstractCheckInCommand
,AbstractCheckOutCommand
,AbstractDiffCommand
,AbstractEditCommand
,AbstractExportCommand
,AbstractFileInfoCommand
,AbstractListCommand
,AbstractLockCommand
,AbstractLoginCommand
,AbstractMkdirCommand
,AbstractRemoteInfoCommand
,AbstractRemoveCommand
,AbstractStatusCommand
,AbstractTagCommand
,AbstractUnEditCommand
,AbstractUnlockCommand
,AbstractUpdateCommand
,GitInfoCommand
,HgInfoCommand
,PerforceInfoCommand
,SvnInfoCommand
public abstract class AbstractCommand extends java.lang.Object implements Command
- Author:
- Emmanuel Venisse, Trygve Laugstøl
-
-
Constructor Summary
Constructors Constructor Description AbstractCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ScmResult
execute(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)
protected abstract ScmResult
executeCommand(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)
ScmLogger
getLogger()
void
setLogger(ScmLogger logger)
-
-
-
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 interfaceCommand
- Parameters:
repository
- not nullfileSet
- not nullparameters
- could be null- Returns:
- the result object
- Throws:
ScmException
- if any
-
getLogger
public final ScmLogger getLogger()
-
-