javax.wvcm
Class ProviderFactory

Object
  |
  +--ProviderFactory

public final class ProviderFactory
extends Object

This factory class is used to create instances of WVCM providers. The providers are identified by their class names and are runtime loaded.


Nested Class Summary
static interface ProviderFactory.Callback
          Provides callback functions that can be invoked by a provider.
 
Constructor Summary
ProviderFactory()
           
 
Method Summary
static Provider createProvider(String providerName, ProviderFactory.Callback callback)
          Return an instance of the Provider whose class name is providerName
static Provider createProvider(String providerName, ProviderFactory.Callback callback, Hashtable h)
          Return an instance of the Provider whose class name is providerName
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProviderFactory

public ProviderFactory()
Method Detail

createProvider

public static Provider createProvider(String providerName,
                                      ProviderFactory.Callback callback)
                               throws Exception
Return an instance of the Provider whose class name is providerName

Parameters:
providerName - The class name of the provider.
callback - The object containing the getAuthentication method that the Provider will call whenever it needs to authenticate the current user.
Exception

createProvider

public static Provider createProvider(String providerName,
                                      ProviderFactory.Callback callback,
                                      Hashtable h)
                               throws Exception
Return an instance of the Provider whose class name is providerName

Parameters:
providerName - The class name of the provider.
callback - The object containing the getAuthentication method that the Provider will call whenever it needs to authenticate the current user.
h - A hashtable containing provider-specific initialization values.
Exception