Example usage for org.apache.lucene.store FSLockFactory getDefault

List of usage examples for org.apache.lucene.store FSLockFactory getDefault

Introduction

In this page you can find the example usage for org.apache.lucene.store FSLockFactory getDefault.

Prototype

public static final FSLockFactory getDefault() 

Source Link

Document

Returns the default locking implementation for this platform.

Usage

From source file:org.apache.maven.index.context.DefaultIndexingContext.java

License:Apache License

public DefaultIndexingContext(String id, String repositoryId, File repository, File indexDirectoryFile,
        String repositoryUrl, String indexUpdateUrl, List<? extends IndexCreator> indexCreators,
        boolean reclaimIndex) throws IOException, ExistingLuceneIndexMismatchException {
    this(id, repositoryId, repository, indexDirectoryFile, new TrackingLockFactory(FSLockFactory.getDefault()),
            repositoryUrl, indexUpdateUrl, indexCreators, reclaimIndex);
}