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

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

public class LoginInfoStoreFactory
extends java.lang.Object

A factory class to create instances of LoginInfoStore.

Since:
Appserver 9.0

Method Summary
static LoginInfoStore getDefaultStore()
           
static LoginInfoStore getStore(java.lang.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(java.lang.String storeImplClassName)
                               throws StoreException,
                                      java.lang.ClassNotFoundException,
                                      java.lang.IllegalAccessException,
                                      java.lang.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:
java.lang.IllegalArgumentException - if the parameter does not implement LoginInfoStore
StoreException - if the construction of default store results in problems
java.lang.ClassNotFoundException - if the given class could not be loaded
java.lang.IllegalAccessException
java.lang.InstantiationException

getDefaultStore

public static LoginInfoStore getDefaultStore()
                                      throws StoreException
Throws:
StoreException


Copyright © 2012 GlassFish Community. All Rights Reserved.