Package org.apache.maven.scm.command
Class AbstractCommand
- java.lang.Object
-
- org.apache.maven.scm.command.AbstractCommand
-
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
AbstractAddCommand,AbstractBlameCommand,AbstractBranchCommand,AbstractChangeLogCommand,AbstractCheckInCommand,AbstractCheckOutCommand,AbstractDiffCommand,AbstractEditCommand,AbstractExportCommand,AbstractFileInfoCommand,AbstractListCommand,AbstractLockCommand,AbstractLoginCommand,AbstractMkdirCommand,AbstractRemoteInfoCommand,AbstractRemoveCommand,AbstractStatusCommand,AbstractTagCommand,AbstractUnEditCommand,AbstractUnlockCommand,AbstractUntagCommand,AbstractUpdateCommand,GitInfoCommand,HgInfoCommand,JGitInfoCommand,SvnInfoCommand
public abstract class AbstractCommand extends 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 ScmResultexecute(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)protected abstract ScmResultexecuteCommand(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)
-
-
-
Field Detail
-
logger
protected org.slf4j.Logger logger
-
-
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:
executein interfaceCommand- Parameters:
repository- not nullfileSet- not nullparameters- could be null- Returns:
- the result object
- Throws:
ScmException- if any
-
-