本文整理汇总了Java中org.alfresco.util.ApplicationContextHelper.CONFIG_LOCATIONS属性的典型用法代码示例。如果您正苦于以下问题:Java ApplicationContextHelper.CONFIG_LOCATIONS属性的具体用法?Java ApplicationContextHelper.CONFIG_LOCATIONS怎么用?Java ApplicationContextHelper.CONFIG_LOCATIONS使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.alfresco.util.ApplicationContextHelper
的用法示例。
在下文中一共展示了ApplicationContextHelper.CONFIG_LOCATIONS属性的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createStandardContextWithOverrides
/**
* This factory method constructs a JUnit rule which will bring up an ApplicationContext consisting
* of the default Alfresco context with any additionConfigLocations appended. It is a convenient way to specify
* override contexts in test code.
*
* @param additionalConfigLocations addition config locations containing additional or overriding beans.
*/
public static ApplicationContextInit createStandardContextWithOverrides(String... additionalConfigLocations)
{
List<String> contexts = new ArrayList<String>();
// The defaults (currently only one)
for (String defaultConfigLocation: ApplicationContextHelper.CONFIG_LOCATIONS)
{
contexts.add(defaultConfigLocation);
}
// any user supplied extras
for (String additionalContext : additionalConfigLocations)
{
contexts.add(additionalContext);
}
String[] contextsAsArray = contexts.toArray(new String[0]);
return new ApplicationContextInit(contextsAsArray);
}
示例2: getConfigLocations
@Override
protected String[] getConfigLocations()
{
return new String[]
{
ApplicationContextHelper.CONFIG_LOCATIONS[0], "classpath:test-ftp-auth-context.xml"
};
}
示例3: getConfigLocations
@Override protected String[] getConfigLocations()
{
List<String> configLocations = new ArrayList<String>();
for (String config : ApplicationContextHelper.CONFIG_LOCATIONS)
{
configLocations.add(config);
}
configLocations.add("classpath:org/alfresco/repo/thumbnail/test-thumbnail-context.xml");
return configLocations.toArray(new String[0]);
}
示例4: getConfigLocations
@Override
protected String[] getConfigLocations()
{
String[] existingConfigLocations = ApplicationContextHelper.CONFIG_LOCATIONS;
List<String> locations = Arrays.asList(existingConfigLocations);
List<String> mutableLocationsList = new ArrayList<String>(locations);
mutableLocationsList.add("classpath:org/alfresco/repo/site/site-custom-context.xml");
String[] result = mutableLocationsList.toArray(new String[mutableLocationsList.size()]);
return result;
}
示例5: getConfigLocations
@Override
protected String[] getConfigLocations()
{
String[] existingConfigLocations = ApplicationContextHelper.CONFIG_LOCATIONS;
List<String> locations = Arrays.asList(existingConfigLocations);
List<String> mutableLocationsList = new ArrayList<String>(locations);
mutableLocationsList.add("classpath:org/alfresco/repo/forms/MNT-7383-context.xml");
String[] result = mutableLocationsList.toArray(new String[mutableLocationsList.size()]);
return result;
}
示例6: getConfigLocations
/**
* {@inheritDoc}
*/
@Override
protected String[] getConfigLocations()
{
return new String[] {ApplicationContextHelper.CONFIG_LOCATIONS[0],
"classpath:tenant/mt-*context.xml"};
}
示例7: getConfigLocations
@Override
protected String[] getConfigLocations()
{
String[] existingConfigLocations = ApplicationContextHelper.CONFIG_LOCATIONS;
List<String> locations = Arrays.asList(existingConfigLocations);
List<String> mutableLocationsList = new ArrayList<String>(locations);
mutableLocationsList.add("classpath:org/alfresco/repo/action/test-action-services-context.xml");
String[] result = mutableLocationsList.toArray(new String[mutableLocationsList.size()]);
return result;
}
示例8: getConfigLocations
@Override
protected String[] getConfigLocations()
{
return new String[]
{
ApplicationContextHelper.CONFIG_LOCATIONS[0], "classpath:subsystem-test-context.xml"
};
}
示例9: getConfigLocations
private String[] getConfigLocations()
{
String[] defaultLocations = ApplicationContextHelper.CONFIG_LOCATIONS;
Object[] locations = ArrayUtils.add(defaultLocations, ACTIVITI_CONTEXT);
return (String[]) locations;
}
示例10: ApplicationContextInit
/**
* Construct a JUnit rule which will bring up a spring ApplicationContext based on the default Alfresco spring context.
*/
public ApplicationContextInit()
{
this(ApplicationContextHelper.CONFIG_LOCATIONS);
}