com.opensymphony.provider
Class ProviderFactory
java.lang.Object
com.opensymphony.provider.ProviderFactory
public class ProviderFactory - extends Object
Get specific provider implementation. This is a singleton.
- Version:
- $Revision: 5 $
- Author:
- Joe Walnes
- See Also:
Provider
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static ProviderFactory getInstance()
- Obtain singleton instance of factory.
getProvider
public Provider getProvider(String property,
String defaultClass)
- Find appropriate provider.
- Parameters:
property - System property under which to find class name of provider implementation.defaultClass - Name of provider to use if all else fails (this should always be able to instantiate).
|