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 TypeMethodDescriptionvoid
contextClosed
(SimpleWorkingCopyFactory<?, ?, ?>.WorkingCopyContext workingCopyContext, File workdir) <R,
W> WorkingCopy<R, W> getWorkingCopy
(SimpleWorkingCopyFactory<R, W, ?>.WorkingCopyContext context) void
shutdown()
-
Constructor Details
-
NoneCachingWorkingCopyPool
-
-
Method Details
-
getWorkingCopy
public <R,W> WorkingCopy<R,W> getWorkingCopy(SimpleWorkingCopyFactory<R, W, ?>.WorkingCopyContext context) - Specified by:
getWorkingCopy
in interfaceWorkingCopyPool
-
contextClosed
public void contextClosed(SimpleWorkingCopyFactory<?, ?, ?>.WorkingCopyContext workingCopyContext, File workdir) - Specified by:
contextClosed
in interfaceWorkingCopyPool
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceWorkingCopyPool
-