org.alfresco.util
Class ApplicationContextHelper

java.lang.Object
  extended by org.alfresco.util.BaseApplicationContextHelper
      extended by org.alfresco.util.ApplicationContextHelper

public class ApplicationContextHelper
extends org.alfresco.util.BaseApplicationContextHelper

Helper class to provide static and common access to the Spring application context.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.util.BaseApplicationContextHelper
org.alfresco.util.BaseApplicationContextHelper.VariableFeatureClassPathXmlApplicationContext
 
Field Summary
static java.lang.String[] CONFIG_LOCATIONS
          location of required configuration files
 
Constructor Summary
ApplicationContextHelper()
           
 
Method Summary
static org.springframework.context.ApplicationContext getApplicationContext()
          Provides a static, single instance of the default Alfresco application context.
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.alfresco.util.BaseApplicationContextHelper
closeApplicationContext, getApplicationContext, isContextLoaded, isNoAutoStart, isUsingLazyLoading, setNoAutoStart, setUseLazyLoading
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_LOCATIONS

public static final java.lang.String[] CONFIG_LOCATIONS
location of required configuration files

Constructor Detail

ApplicationContextHelper

public ApplicationContextHelper()
Method Detail

getApplicationContext

public static org.springframework.context.ApplicationContext getApplicationContext()
Provides a static, single instance of the default Alfresco application context. This method can be called repeatedly.

If the configuration requested differs from one used previously, then the previously-created context is shut down.

Returns:
Returns an application context for the default Alfresco configuration

main

public static void main(java.lang.String[] args)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.