org.jasig.portal.spring
Class PortalApplicationContextFacade

java.lang.Object
  extended by org.jasig.portal.spring.PortalApplicationContextFacade

public final class PortalApplicationContextFacade
extends java.lang.Object

Static bean factory locator service for the uPortal framework.
This class reads the 'properties/beanRefFactory.xml' file to use for retrieving an application context's BeanFactory. This allows the factories to be used by any component of the uPortal framework in a singleton manner.

Version:
$Revision: 1.2 $ $Date: 2004/12/14 03:51:40 $
Author:
Eric Dalquist edalquist@unicon.net

Field Summary
static java.lang.String BEAN_REF_FACTORY_PATH
          Location this class uses to initialize the SingletonBeanFactoryLocator used to marshall application contexts from.
static java.lang.String PORTAL_CONTEXT_NAME
          Name of the default portal application context.
 
Constructor Summary
private PortalApplicationContextFacade()
          ensure this class can't be instantiated
 
Method Summary
static org.springframework.beans.factory.BeanFactory getApplicationContext(java.lang.String contextName)
          Gets the BeanFactory for the specified application context.
static org.springframework.beans.factory.BeanFactory getPortalApplicationContext()
          Calls getApplicationContext(String) with PORTAL_CONTEXT_NAME as the argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_REF_FACTORY_PATH

public static java.lang.String BEAN_REF_FACTORY_PATH
Location this class uses to initialize the SingletonBeanFactoryLocator used to marshall application contexts from.


PORTAL_CONTEXT_NAME

public static java.lang.String PORTAL_CONTEXT_NAME
Name of the default portal application context.

Constructor Detail

PortalApplicationContextFacade

private PortalApplicationContextFacade()
ensure this class can't be instantiated

Method Detail

getPortalApplicationContext

public static org.springframework.beans.factory.BeanFactory getPortalApplicationContext()
Calls getApplicationContext(String) with PORTAL_CONTEXT_NAME as the argument.

See Also:
getApplicationContext(String)

getApplicationContext

public static org.springframework.beans.factory.BeanFactory getApplicationContext(java.lang.String contextName)
Gets the BeanFactory for the specified application context.

Parameters:
contextName - The name of the application context BeanFactory to return.
Returns:
The (singleton) BeanFactory for the application context.