mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)
101331: Merge RA-SPRINT2 to HEAD-BUG-FIX (5.1) 100711: RA-86, RA-87 & RA-88 (sub-tasks of RA-56): Move wiki service back-end classes to share services project. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@101472 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -46,6 +46,20 @@ public class ApplicationContextHelper extends BaseApplicationContextHelper
|
||||
return BaseApplicationContextHelper.getApplicationContext(CONFIG_LOCATIONS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides a static, single instance of an application context represented by the given
|
||||
* array of config locations. This method can be called repeatedly.
|
||||
* <p/>
|
||||
* If the configuration requested differs from one used previously, then the previously-created
|
||||
* context is shut down.
|
||||
*
|
||||
* @return Returns an application context for the given config locations
|
||||
*/
|
||||
public synchronized static ApplicationContext getApplicationContext(String[] configLocations)
|
||||
{
|
||||
return BaseApplicationContextHelper.getApplicationContext(configLocations);
|
||||
}
|
||||
|
||||
public static void main(String ... args)
|
||||
{
|
||||
ClassPathXmlApplicationContext ctx = (ClassPathXmlApplicationContext) getApplicationContext();
|
||||
|
Reference in New Issue
Block a user