org.cagrid.gaards.websso.utils
Class ObjectFactory

java.lang.Object
  extended by org.cagrid.gaards.websso.utils.ObjectFactory

public class ObjectFactory
extends java.lang.Object

A simple object factory which retrieves objects from the pre-configured factory


Method Summary
static java.lang.Object getObject(java.lang.String key)
          Get Object instance from the classname.
static void initialize(java.lang.String fileName)
          Initializes the object factory from the fileName parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initialize

public static void initialize(java.lang.String fileName)
Initializes the object factory from the fileName parameter

Parameters:
fileName - Name of the file which contains the configuration for the WebSSO

getObject

public static java.lang.Object getObject(java.lang.String key)
                                  throws AuthenticationConfigurationException
Get Object instance from the classname.

Parameters:
key - Key representing the class (bean) to be retrieved as configured in the configuration file
Returns:
the instance of the class.
Throws:
ApplicationException
AuthenticationConfigurationException