smbdav
Class LockManagerFactory

java.lang.Object
  extended bysmbdav.LockManagerFactory
Direct Known Subclasses:
NoLockManagerFactory, SmbLockManagerFactory

public abstract class LockManagerFactory
extends java.lang.Object

This is the base class for lock management providers. A subclass of LockManagerFactory can be installed to vend LockManager instances for Davenport. The provider is specified by the "smbdav.LockManagerFactory" system property, or via a Jar service provider ("/META-INF/services/smbdav.LockManagerFactory").

Author:
Eric Glass

Constructor Summary
LockManagerFactory()
           
 
Method Summary
static LockManagerFactory newInstance()
          Creates a new LockManagerFactory instance.
abstract  LockManager newLockManager()
          Creates a new LockManager instance.
 void setProperties(java.util.Properties properties)
          Configures the factory with a set of properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockManagerFactory

public LockManagerFactory()
Method Detail

newInstance

public static LockManagerFactory newInstance()
Creates a new LockManagerFactory instance.

Returns:
A LockManagerFactory implementation.

setProperties

public void setProperties(java.util.Properties properties)
Configures the factory with a set of properties. This implementation does nothing; this should be overridden by subclasses to configure implementation-specific features.

Parameters:
properties - The configuration properties.

newLockManager

public abstract LockManager newLockManager()
Creates a new LockManager instance.

Returns:
A LockManager implementation. The actual object returned is implementation-specific.


Copyright © 2004 Eric Glass