public class DefaultLockFactoryCreator extends Object implements LockFactoryCreator, Startable
LockFactoryCreator
.Constructor and Description |
---|
DefaultLockFactoryCreator() |
Modifier and Type | Method and Description |
---|---|
LockFactory |
createLockFactory(File indexDir,
Properties dirConfiguration)
Creates a
LockFactory as selected in the configuration for the Directory provider. |
void |
start(Properties properties,
BuildContext context)
Start phase notification.
|
public void start(Properties properties, BuildContext context)
Startable
public LockFactory createLockFactory(File indexDir, Properties dirConfiguration)
LockFactoryCreator
LockFactory
as selected in the configuration for the Directory provider. The "simple" and
"native" strategies a File
to know where to store the file system based locks; other implementations may
ignore this parameter.createLockFactory
in interface LockFactoryCreator
indexDir
- the directory to use to store locks, if needed by implementationdirConfiguration
- the configuration of current DirectoryProviderCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved