Package org.tmatesoft.svn.core.wc2
Interface ISvnOperationRunner<V,T extends SvnOperation<V>>
- Type Parameters:
V
- type of the operation's return valueT
- type of the operation, subclass ofSvnOperation
public interface ISvnOperationRunner<V,T extends SvnOperation<V>>
This interface describes Svn* operation runner.
Provides context for the operation.
Defines runner's working copy generation, which is used by
for deciding whether it is applicable runner implementation of the operation.
- Version:
- 1.7
- Author:
- TMate Software Ltd.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.tmatesoft.svn.core.internal.wc2.SvnWcGeneration
Returns runner's working copy generation it is able to operate on.boolean
isApplicable
(T operation, org.tmatesoft.svn.core.internal.wc2.SvnWcGeneration wcGeneration) Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)void
reset
(org.tmatesoft.svn.core.internal.wc2.SvnWcGeneration detectedWcGeneration) Resets runner's working copy generation.Implementation of operation'srun
method for concrete working copy generationvoid
setWcContext
(org.tmatesoft.svn.core.internal.wc17.SVNWCContext context) Sets operation's context
-
Method Details
-
isApplicable
boolean isApplicable(T operation, org.tmatesoft.svn.core.internal.wc2.SvnWcGeneration wcGeneration) throws SVNException Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)- Parameters:
operation
- operation that needs runnerwcGeneration
- working copy generation- Returns:
true
if the runner is applicable, otherwisefalse
- Throws:
SVNException
-
run
Implementation of operation'srun
method for concrete working copy generation- Parameters:
operation
- operation that needs to be executed- Returns:
- execution result value of operation's return type
- Throws:
SVNException
-
setWcContext
void setWcContext(org.tmatesoft.svn.core.internal.wc17.SVNWCContext context) Sets operation's context- Parameters:
context
- context of the operation
-
reset
void reset(org.tmatesoft.svn.core.internal.wc2.SvnWcGeneration detectedWcGeneration) Resets runner's working copy generation.- Parameters:
detectedWcGeneration
- new working copy generation for the runner
-
getWcGeneration
org.tmatesoft.svn.core.internal.wc2.SvnWcGeneration getWcGeneration()Returns runner's working copy generation it is able to operate on.- Returns:
- working copy generation of the runner.
-