|
Project: stp | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectjavax.wvcm.ProviderFactory
public final class ProviderFactory
A factory class for creating instances of a WVCM provider. This is a convenience class used to simplify the creation of an instance of a WVCM provider. A provider is identified by its class name and is runtime loaded.
Nested Class Summary | |
---|---|
static interface |
ProviderFactory.Callback
Provides callback functions that can be invoked by a provider. |
Method Summary | |
---|---|
static Provider |
createProvider(String providerName,
ProviderFactory.Callback callback)
Create a WVCM provider with the given class name. |
static Provider |
createProvider(String providerName,
ProviderFactory.Callback callback,
Map<String,String> initArgs)
Get a WVCM provider with the given class name, with specified initializers. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Provider createProvider(String providerName, ProviderFactory.Callback callback) throws Exception
providerName
- the fully-qualified 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
- if no class of the given name can be found, loaded, or initialized.public static Provider createProvider(String providerName, ProviderFactory.Callback callback, Map<String,String> initArgs) throws Exception
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.initArgs
- a Map containing provider-specific initialization values.
Exception
- if no class of the given name can be found, loaded, or initialized.
|
Generated Thu 3-Nov-2011 01:39 AM | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |