Package edu.umd.cs.findbugs.ba
Class SourceFinder.BlockingSourceRepository
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.SourceFinder.BlockingSourceRepository
-
- All Implemented Interfaces:
SourceFinder.SourceRepository
,java.lang.AutoCloseable
- Enclosing class:
- SourceFinder
static class SourceFinder.BlockingSourceRepository extends java.lang.Object implements SourceFinder.SourceRepository
-
-
Field Summary
Fields Modifier and Type Field Description (package private) SourceFinder.SourceRepository
base
(package private) java.util.concurrent.CountDownLatch
ready
-
Constructor Summary
Constructors Constructor Description BlockingSourceRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
await()
void
close()
boolean
contains(java.lang.String fileName)
SourceFileDataSource
getDataSource(java.lang.String fileName)
boolean
isPlatformDependent()
boolean
isReady()
void
setBase(SourceFinder.SourceRepository base)
-
-
-
Field Detail
-
base
SourceFinder.SourceRepository base
-
ready
final java.util.concurrent.CountDownLatch ready
-
-
Method Detail
-
isReady
public boolean isReady()
-
setBase
public void setBase(@WillCloseWhenClosed SourceFinder.SourceRepository base)
-
await
private void await()
-
contains
public boolean contains(java.lang.String fileName)
- Specified by:
contains
in interfaceSourceFinder.SourceRepository
-
getDataSource
public SourceFileDataSource getDataSource(java.lang.String fileName)
- Specified by:
getDataSource
in interfaceSourceFinder.SourceRepository
-
isPlatformDependent
public boolean isPlatformDependent()
- Specified by:
isPlatformDependent
in interfaceSourceFinder.SourceRepository
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceSourceFinder.SourceRepository
- Throws:
java.io.IOException
-
-