Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
05/24/08 14:37:02 (8 months ago)
Author:
bwolfe
Message:

Merging api-refactoring to trunk [3595]:[4355]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/trunk/metadata/api/spring/applicationContext-service.xml

    r4302 r4358  
    6060        <property name="obsService"><ref bean="obsService"/></property> 
    6161        <property name="encounterService"><ref bean="encounterService"/></property> 
     62        <property name="locationService"><ref bean="locationService"/></property> 
    6263        <property name="orderService"><ref bean="orderService"/></property> 
    6364        <property name="formService"><ref bean="formService"/></property> 
     
    105106        </bean> 
    106107        <bean id="encounterDAO" class="org.openmrs.api.db.hibernate.HibernateEncounterDAO"> 
     108                <property name="sessionFactory"><ref bean="sessionFactory"/></property>  
     109        </bean> 
     110        <bean id="locationDAO" class="org.openmrs.api.db.hibernate.HibernateLocationDAO"> 
    107111                <property name="sessionFactory"><ref bean="sessionFactory"/></property>  
    108112        </bean> 
     
    207211                <property name="encounterDAO"><ref bean="encounterDAO"/></property>      
    208212        </bean> 
     213        <bean id="locationServiceTarget" class="org.openmrs.api.impl.LocationServiceImpl"> 
     214                <property name="locationDAO"><ref bean="locationDAO"/></property>        
     215        </bean> 
    209216        <bean id="orderServiceTarget" class="org.openmrs.api.impl.OrderServiceImpl"> 
    210217                <property name="orderDAO"><ref bean="orderDAO"/></property>      
     
    311318                        <list> 
    312319                                <ref local="authorizationInterceptor"/> 
     320                                <ref local="loggingInterceptor"/> 
    313321                        </list> 
    314322                </property> 
     
    324332                        <list> 
    325333                                <ref local="authorizationInterceptor"/> 
     334                                <ref local="loggingInterceptor"/> 
    326335                        </list> 
    327336                </property> 
     
    336345                        <list> 
    337346                                <ref local="authorizationInterceptor"/> 
     347                                <ref local="loggingInterceptor"/> 
    338348                        </list> 
    339349                </property> 
     
    348358                        <list> 
    349359                                <ref local="authorizationInterceptor"/> 
     360                                <ref local="loggingInterceptor"/> 
    350361                        </list> 
    351362                </property> 
     
    360371                        <list> 
    361372                                <ref local="authorizationInterceptor"/> 
     373                                <ref local="loggingInterceptor"/> 
    362374                        </list> 
    363375                </property> 
     
    372384                        <list> 
    373385                                <ref local="authorizationInterceptor"/> 
     386                                <ref local="loggingInterceptor"/> 
     387                        </list> 
     388                </property> 
     389                <property name="transactionAttributeSource"> 
     390                        <bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"/> 
     391                </property> 
     392        </bean> 
     393        <bean id="locationService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> 
     394                <property name="transactionManager"><ref local="transactionManager"/></property> 
     395                <property name="target"><ref local="locationServiceTarget"/></property> 
     396                <property name="preInterceptors"> 
     397                        <list> 
     398                                <ref local="authorizationInterceptor"/> 
     399                                <ref local="loggingInterceptor"/> 
    374400                        </list> 
    375401                </property> 
     
    384410                        <list> 
    385411                                <ref local="authorizationInterceptor"/> 
     412                                <ref local="loggingInterceptor"/> 
    386413                        </list> 
    387414                </property> 
     
    396423                        <list> 
    397424                                <ref local="authorizationInterceptor"/> 
     425                                <ref local="loggingInterceptor"/> 
    398426                        </list> 
    399427                </property> 
     
    408436                        <list> 
    409437                                <ref local="authorizationInterceptor"/> 
     438                                <ref local="loggingInterceptor"/> 
    410439                        </list> 
    411440                </property> 
     
    420449                        <list> 
    421450                                <ref local="authorizationInterceptor"/> 
     451                                <ref local="loggingInterceptor"/> 
    422452                        </list> 
    423453                </property> 
     
    432462                        <list> 
    433463                                <ref local="authorizationInterceptor"/> 
     464                                <ref local="loggingInterceptor"/> 
    434465                        </list> 
    435466                </property> 
     
    444475                        <list> 
    445476                                <ref local="authorizationInterceptor"/> 
     477                                <ref local="loggingInterceptor"/> 
    446478                        </list> 
    447479                </property> 
     
    456488                        <list> 
    457489                                <ref local="authorizationInterceptor"/> 
     490                                <ref local="loggingInterceptor"/> 
    458491                        </list> 
    459492                </property> 
     
    470503                        <list> 
    471504                                <ref local="authorizationInterceptor"/> 
     505                                <ref local="loggingInterceptor"/> 
    472506                        </list> 
    473507                </property> 
     
    482516                        <list> 
    483517                                <ref local="authorizationInterceptor"/> 
     518                                <ref local="loggingInterceptor"/> 
    484519                        </list> 
    485520                </property> 
     
    494529                        <list> 
    495530                                <ref local="authorizationInterceptor"/> 
     531                                <ref local="loggingInterceptor"/> 
    496532                        </list> 
    497533                </property> 
     
    506542                        <list> 
    507543                                <ref local="authorizationInterceptor"/> 
     544                                <ref local="loggingInterceptor"/> 
    508545                        </list> 
    509546                </property> 
     
    518555                        <list> 
    519556                                <ref local="authorizationInterceptor"/> 
     557                                <ref local="loggingInterceptor"/> 
    520558                        </list> 
    521559                </property> 
     
    530568                        <list> 
    531569                                <ref local="authorizationInterceptor"/> 
     570                                <ref local="loggingInterceptor"/> 
    532571                        </list> 
    533572                </property> 
     
    542581                        <list> 
    543582                                <ref local="authorizationInterceptor"/> 
     583                                <ref local="loggingInterceptor"/> 
    544584                        </list> 
    545585                </property> 
     
    554594                        <list> 
    555595                                <ref local="authorizationInterceptor"/> 
     596                                <ref local="loggingInterceptor"/> 
    556597                        </list> 
    557598                </property> 
     
    582623        --> 
    583624        <bean id="authorizationInterceptor" class="org.openmrs.aop.AuthorizationAdvice"/> 
     625         
     626        <!--  **************************  LOGGING INTERCEPTOR  *************************  --> 
     627        <!-- 
     628                This as an AOP "around" advisor that prints logging messages  
     629        --> 
     630        <bean id="loggingInterceptor" class="org.openmrs.aop.LoggingAdvice"/> 
    584631 
    585632