javax.wvcm
Class ProviderFactory

java.lang.Object
  extended by javax.wvcm.ProviderFactory

public final class ProviderFactory
extends java.lang.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.
static interface ProviderFactory.TokenCallback
          NOT YET STANDARD Token based callback for provider.
 
Constructor Summary
ProviderFactory()
           
 
Method Summary
static Provider createProvider(java.lang.String providerName, ProviderFactory.Callback callback)
          Return an instance of the Provider whose class name is providerName
static Provider createProvider(java.lang.String providerName, ProviderFactory.Callback callback, java.util.Hashtable h)
          Return an instance of the Provider whose class name is providerName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProviderFactory

public ProviderFactory()
Method Detail

createProvider

public static Provider createProvider(java.lang.String providerName,
                                      ProviderFactory.Callback callback)
                               throws java.lang.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.
Throws:
java.lang.Exception

createProvider

public static Provider createProvider(java.lang.String providerName,
                                      ProviderFactory.Callback callback,
                                      java.util.Hashtable h)
                               throws java.lang.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.
Throws:
java.lang.Exception


Copyright (c) 2003 - Apache Software Foundation