当前位置: 首页>>代码示例>>Java>>正文


Java ApplicationContextHelper.CONFIG_LOCATIONS属性代码示例

本文整理汇总了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);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:27,代码来源:ApplicationContextInit.java

示例2: getConfigLocations

@Override
protected String[] getConfigLocations()
{
    return new String[]
    {
        ApplicationContextHelper.CONFIG_LOCATIONS[0], "classpath:test-ftp-auth-context.xml"
    };
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:8,代码来源:SubsystemChainingFtpAuthenticatorTest.java

示例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]);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:11,代码来源:ThumbnailServiceImplTest.java

示例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;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:12,代码来源:CustomRoleTest.java

示例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;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:12,代码来源:ActionFormProcessorTest.java

示例6: getConfigLocations

/**
* {@inheritDoc}
*/
@Override
protected String[] getConfigLocations()
{
    return new String[] {ApplicationContextHelper.CONFIG_LOCATIONS[0],
            "classpath:tenant/mt-*context.xml"};
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:9,代码来源:AbstractMultitenantWorkflowTest.java

示例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;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:12,代码来源:ActionServiceImplTest.java

示例8: getConfigLocations

@Override
protected String[] getConfigLocations()
{
    return new String[]
    {
        ApplicationContextHelper.CONFIG_LOCATIONS[0], "classpath:subsystem-test-context.xml"
    };
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:8,代码来源:SubsystemsTest.java

示例9: getConfigLocations

private String[] getConfigLocations()
{
    String[] defaultLocations = ApplicationContextHelper.CONFIG_LOCATIONS;
    Object[] locations = ArrayUtils.add(defaultLocations, ACTIVITI_CONTEXT);
    return (String[]) locations;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:6,代码来源:ActivitiSpringTest.java

示例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);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:7,代码来源:ApplicationContextInit.java


注:本文中的org.alfresco.util.ApplicationContextHelper.CONFIG_LOCATIONS属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。