Java EE 5 SDK

com.sun.appserv.management.client.prefs
Class LoginInfoStoreFactory

java.lang.Object
  extended by com.sun.appserv.management.client.prefs.LoginInfoStoreFactory

public class LoginInfoStoreFactory
extends Object

A factory class to create instances of LoginInfoStore.

Since:
Appserver 9.0

Method Summary
static LoginInfoStore getStore(String storeImplClassName)
          Returns the store that is represented by given class name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStore

public static LoginInfoStore getStore(String storeImplClassName)
                               throws StoreException,
                                      ClassNotFoundException,
                                      IllegalAccessException,
                                      InstantiationException
Returns the store that is represented by given class name. The parameter must implement the LoginInfoStore interface. If a null is passed, an instance of the default store MemoryHashLoginInfoStore is returned.

Parameters:
storeImplClassName - fully qualified name of the class implementing LoginInfoStore. May be null.
Returns:
the instance of LoginInfoStore of your choice
Throws:
IllegalArgumentException - if the parameter does not implement LoginInfoStore
StoreException - if the construction of default store results in problems
ClassNotFoundException - if the given class could not be loaded
IllegalAccessException
InstantiationException

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.