Files
alfresco-community-repo/config/alfresco/application-context.xml
Jon Cox cdfe23c2c6 To give developers final control over the tuning
of their own local build, the dev-context.xml file                                                                                                                    
   is processed last  (note: dev-context.xml isn't                                                                                                                       
   part of the source tree itself).                                                                                                                                      
                                                                                                                                                                                 
   Once this file said:

      <import resource="classpath*:alfresco/extension/*-context.xml"/>                                                                                                           


   Now it ensures dev-context.xml is last via:

      <import resource="classpath*:alfresco/extension/*-context.xml"/>                                                                                                           
      <import resource="classpath*:alfresco/extension/dev-context.xml" />                                                                                                        

   The order matters if you have a dev-context.xml 
   that overrides fileServersConfigSource  
   (which is the "right" way to assert a private version of:  

     root/projects/repository/config/alfresco/extension/file-servers-custom.xml
     
   It seems weird that we have a checked-in extension like this,
   so I supose it's no stranger that the means to override it
   should also be a little curious.

   Anyway, now my dev-context.xml can say:
  
      <bean id="fileServersConfigSource" 
            class="org.alfresco.config.source.UrlConfigSource">
        <constructor-arg>
           <list>
              <value>classpath:alfresco/file-servers.xml</value>
              
              <!-- Get the CIFS port from a custom application context config file -->
              <!-- <value>classpath:alfresco/extension/file-servers-custom.xml</value> -->
              <value>file:/home/jcox/etc/alfresco/file-servers-custom.xml</value>                                                                                
           </list>
        </constructor-arg>
     </bean>


   This allows me to provide *my*  file-servers-custom.xml that
   won't ever get checked in by mistake, because it only uses
   the existing dev-context.xml mechanism. 

   From there, I can set my CIFS ports.
   Whew.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4511 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-04 23:32:03 +00:00

48 lines
2.5 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<!-- references to XML configurations -->
<beans >
<import resource="classpath:alfresco/core-services-context.xml" />
<import resource="classpath:alfresco/public-services-context.xml" />
<import resource="classpath:alfresco/model-specific-services-context.xml" />
<import resource="classpath:alfresco/action-services-context.xml" />
<import resource="classpath:alfresco/rule-services-context.xml" />
<import resource="classpath:alfresco/node-services-context.xml" />
<import resource="classpath:alfresco/scheduled-jobs-context.xml" />
<import resource="classpath:alfresco/network-protocol-context.xml" />
<import resource="classpath:alfresco/content-services-context.xml" />
<import resource="classpath:alfresco/hibernate-context.xml" />
<import resource="classpath:alfresco/ownable-services-context.xml" />
<import resource="classpath:alfresco/template-services-context.xml" />
<import resource="classpath:alfresco/script-services-context.xml" />
<import resource="classpath:alfresco/index-recovery-context.xml" />
<import resource="classpath:alfresco/authority-services-context.xml" />
<import resource="classpath:alfresco/authentication-services-context.xml" />
<import resource="classpath:alfresco/policy-context.xml" />
<import resource="classpath:alfresco/import-export-context.xml" />
<import resource="classpath:alfresco/bootstrap-context.xml" />
<import resource="classpath:alfresco/workflow-context.xml" />
<import resource="classpath:alfresco/jcr-api-context.xml" />
<import resource="classpath:alfresco/avm-services-context.xml" />
<import resource="classpath:alfresco/audit-services-context.xml" />
<import resource="classpath*:alfresco/patch/*-context.xml" />
<import resource="classpath*:alfresco/domain/*-context.xml" />
<!--
Import of general extensions and bean overrides.
To give developers final control over the tuning
of their own local build, the dev-context.xml file
is processed last (note: dev-context.xml isn't
part of the source tree itself).
For details, see:
http://wiki.alfresco.com/wiki/Developer_Runtime_Configuration
-->
<import resource="classpath*:alfresco/extension/*-context.xml"/>
<import resource="classpath*:alfresco/extension/dev-context.xml" />
</beans>