ChildApplicationContextFactory.java 文件源码

java
阅读 38 收藏 0 点赞 0 评论 0

项目:alfresco-repository 作者:
/**
 * Instantiates a new application context state.
 * 
 * @throws IOException
 *             Signals that an I/O exception has occurred.
 */
protected ApplicationContextState(boolean allowInitAccess ) throws IOException
{
    this.allowInitAccess = allowInitAccess;
    // Load the property defaults
    PropertiesFactoryBean factory = new PropertiesFactoryBean();
    factory.setPropertiesPersister(getPersister());
    factory.setLocations(getParent().getResources(
            ChildApplicationContextFactory.CLASSPATH_PREFIX + getCategory() + '/' + getTypeName()
                    + ChildApplicationContextFactory.PROPERTIES_SUFFIX));
    factory.afterPropertiesSet();
    this.properties = (Properties) factory.getObject();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号