Class LoginInfoStoreFactory
- java.lang.Object
-
- 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LoginInfoStoregetDefaultStore()static LoginInfoStoregetStore(String storeImplClassName)Returns the store that is represented by given class name.
-
-
-
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 theLoginInfoStoreinterface. If a null is passed, an instance of the default storeMemoryHashLoginInfoStoreis 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 LoginInfoStoreStoreException- if the construction of default store results in problemsClassNotFoundException- if the given class could not be loadedIllegalAccessExceptionInstantiationException
-
getDefaultStore
public static LoginInfoStore getDefaultStore() throws StoreException
- Throws:
StoreException
-
-