com.opensymphony.provider
Class ProviderFactory

java.lang.Object
  extended by com.opensymphony.provider.ProviderFactory

public class ProviderFactory
extends Object

Get specific provider implementation. This is a singleton.

Version:
$Revision: 1.1.1.1 $
Author:
Joe Walnes
See Also:
Provider

Method Summary
static ProviderFactory getInstance()
          Obtain singleton instance of factory.
 Provider getProvider(String property, String defaultClass)
          Find appropriate provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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).

OSCore Project Page