Package sonia.scm.repository.work
Class NoneCachingWorkingCopyPool
java.lang.Object
sonia.scm.repository.work.NoneCachingWorkingCopyPool
- All Implemented Interfaces:
WorkingCopyPool
This is the default implementation for the
WorkingCopyPool. For each requested WorkingCopy with
getWorkingCopy(SimpleWorkingCopyFactory.WorkingCopyContext), a new directory is requested from the
WorkdirProvider. This directory is deleted immediately when the context is closed with
contextClosed(SimpleWorkingCopyFactory.WorkingCopyContext, File).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextClosed(SimpleWorkingCopyFactory<?, ?, ?>.WorkingCopyContext workingCopyContext, File workdir) <R,W> WorkingCopy<R, W> getWorkingCopy(SimpleWorkingCopyFactory<R, W, ?>.WorkingCopyContext context) voidshutdown()
-
Constructor Details
-
NoneCachingWorkingCopyPool
-
-
Method Details
-
getWorkingCopy
public <R,W> WorkingCopy<R,W> getWorkingCopy(SimpleWorkingCopyFactory<R, W, ?>.WorkingCopyContext context) - Specified by:
getWorkingCopyin interfaceWorkingCopyPool
-
contextClosed
public void contextClosed(SimpleWorkingCopyFactory<?, ?, ?>.WorkingCopyContext workingCopyContext, File workdir) - Specified by:
contextClosedin interfaceWorkingCopyPool
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceWorkingCopyPool
-