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:
Tatyana Valkevych
2015-04-08 16:23:14 +00:00
parent 1d4fc9dbe0
commit 7252dc8f76
11 changed files with 14 additions and 1768 deletions

View File

@@ -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();