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
- All Known Implementing Classes:
SvnLocalOperationRunner,SvnNgAbstractUpdate,SvnNgAdd,SvnNgCanonicalizeUrls,SvnNgCat,SvnNgCheckout,SvnNgCleanup,SvnNgCommit,SvnNgDiff,SvnNgDiffSummarize,SvnNgDowngrade,SvnNgExport,SvnNgGetChangelistPaths,SvnNgGetInfo,SvnNgGetMergeInfo,SvnNgGetProperties,SvnNgGetStatus,SvnNgGetStatusSummary,SvnNgLogMergeInfo,SvnNgMarkReplaced,SvnNgMerge,SvnNgMergePegged,SvnNgMergeReintegrate,SvnNgOperationRunner,SvnNgPatch,SvnNgRelocate,SvnNgRemove,SvnNgReposToReposCopy,SvnNgReposToWcCopy,SvnNgResolve,SvnNgRevert,SvnNgSetChangelist,SvnNgSetLock,SvnNgSetProperty,SvnNgSuggestMergeSources,SvnNgSwitch,SvnNgUnlock,SvnNgUpdate,SvnNgUpgrade,SvnNgWcToReposCopy,SvnNgWcToWcCopy,SvnOldAdd,SvnOldAnnotate,SvnOldCanonicalizeUrls,SvnOldCat,SvnOldCheckout,SvnOldCleanup,SvnOldCommit,SvnOldCopy,SvnOldDiff,SvnOldExport,SvnOldGetChangelistPaths,SvnOldGetInfo,SvnOldGetMergeInfo,SvnOldGetProperties,SvnOldGetStatus,SvnOldGetStatusSummary,SvnOldImport,SvnOldList,SvnOldLogMergeInfo,SvnOldMarkReplaced,SvnOldMerge,SvnOldRelocate,SvnOldRemoteCopy,SvnOldRemove,SvnOldResolve,SvnOldRevert,SvnOldRunner,SvnOldSetChangelist,SvnOldSetLock,SvnOldSetProperty,SvnOldSuggestMergeSources,SvnOldSwitch,SvnOldUnlock,SvnOldUpdate,SvnOldUpgrade,SvnOperationRunner,SvnRemoteAnnotate,SvnRemoteCat,SvnRemoteDiff,SvnRemoteExport,SvnRemoteGetInfo,SvnRemoteGetProperties,SvnRemoteGetRevisionProperties,SvnRemoteList,SvnRemoteLog,SvnRemoteOperationRunner,SvnRemoteRemoteDelete,SvnRemoteRemoteMkDir,SvnRemoteSetLock,SvnRemoteSetPropertyImpl,SvnRemoteSetRevisionProperty,SvnRemoteUnlock,SvnRepositoryCatImpl,SvnRepositoryCopyRevisionPropertiesImpl,SvnRepositoryCreateImpl,SvnRepositoryDumpImpl,SvnRepositoryFilterImpl,SvnRepositoryGetAuthorImpl,SvnRepositoryGetChangedDirectoriesImpl,SvnRepositoryGetChangedImpl,SvnRepositoryGetDateImpl,SvnRepositoryGetDiffImpl,SvnRepositoryGetFileSizeImpl,SvnRepositoryGetHistoryImpl,SvnRepositoryGetInfoImpl,SvnRepositoryGetLockImpl,SvnRepositoryGetLogImpl,SvnRepositoryGetPropertiesImpl,SvnRepositoryGetPropertyImpl,SvnRepositoryGetRevisionPropertiesImpl,SvnRepositoryGetRevisionPropertyImpl,SvnRepositoryGetTreeImpl,SvnRepositoryGetUUIDImpl,SvnRepositoryGetYoungestImpl,SvnRepositoryHotCopyImpl,SvnRepositoryInitializeImpl,SvnRepositoryListLocksImpl,SvnRepositoryListTransactionsImpl,SvnRepositoryLoadImpl,SvnRepositoryOperationRunner,SvnRepositoryPackImpl,SvnRepositoryRecoverImpl,SvnRepositoryRemoveLocksImpl,SvnRepositoryRemoveTransactionsImpl,SvnRepositorySetUUIDImpl,SvnRepositorySynchronizeImpl,SvnRepositorySyncInfoImpl,SvnRepositoryUpgradeImpl,SvnRepositoryVerifyImpl
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
- See Also:
SvnOperation,SvnOperationFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SvnWcGenerationgetWcGeneration()Returns runner's working copy generation it is able to operate on.booleanisApplicable(T operation, SvnWcGeneration wcGeneration)Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)voidreset(SvnWcGeneration detectedWcGeneration)Resets runner's working copy generation.Vrun(T operation)Implementation of operation'srunmethod for concrete working copy generationvoidsetWcContext(SVNWCContext context)Sets operation's context
-
-
-
Method Detail
-
isApplicable
boolean isApplicable(T operation, 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:
trueif the runner is applicable, otherwisefalse- Throws:
SVNException
-
run
V run(T operation) throws SVNException
Implementation of operation'srunmethod 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(SVNWCContext context)
Sets operation's context- Parameters:
context- context of the operation
-
reset
void reset(SvnWcGeneration detectedWcGeneration)
Resets runner's working copy generation.- Parameters:
detectedWcGeneration- new working copy generation for the runner
-
getWcGeneration
SvnWcGeneration getWcGeneration()
Returns runner's working copy generation it is able to operate on.- Returns:
- working copy generation of the runner.
-
-