- Timestamp:
- 05/24/08 14:37:02 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/trunk/metadata/api/spring/applicationContext-service.xml
r4302 r4358 60 60 <property name="obsService"><ref bean="obsService"/></property> 61 61 <property name="encounterService"><ref bean="encounterService"/></property> 62 <property name="locationService"><ref bean="locationService"/></property> 62 63 <property name="orderService"><ref bean="orderService"/></property> 63 64 <property name="formService"><ref bean="formService"/></property> … … 105 106 </bean> 106 107 <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"> 107 111 <property name="sessionFactory"><ref bean="sessionFactory"/></property> 108 112 </bean> … … 207 211 <property name="encounterDAO"><ref bean="encounterDAO"/></property> 208 212 </bean> 213 <bean id="locationServiceTarget" class="org.openmrs.api.impl.LocationServiceImpl"> 214 <property name="locationDAO"><ref bean="locationDAO"/></property> 215 </bean> 209 216 <bean id="orderServiceTarget" class="org.openmrs.api.impl.OrderServiceImpl"> 210 217 <property name="orderDAO"><ref bean="orderDAO"/></property> … … 311 318 <list> 312 319 <ref local="authorizationInterceptor"/> 320 <ref local="loggingInterceptor"/> 313 321 </list> 314 322 </property> … … 324 332 <list> 325 333 <ref local="authorizationInterceptor"/> 334 <ref local="loggingInterceptor"/> 326 335 </list> 327 336 </property> … … 336 345 <list> 337 346 <ref local="authorizationInterceptor"/> 347 <ref local="loggingInterceptor"/> 338 348 </list> 339 349 </property> … … 348 358 <list> 349 359 <ref local="authorizationInterceptor"/> 360 <ref local="loggingInterceptor"/> 350 361 </list> 351 362 </property> … … 360 371 <list> 361 372 <ref local="authorizationInterceptor"/> 373 <ref local="loggingInterceptor"/> 362 374 </list> 363 375 </property> … … 372 384 <list> 373 385 <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"/> 374 400 </list> 375 401 </property> … … 384 410 <list> 385 411 <ref local="authorizationInterceptor"/> 412 <ref local="loggingInterceptor"/> 386 413 </list> 387 414 </property> … … 396 423 <list> 397 424 <ref local="authorizationInterceptor"/> 425 <ref local="loggingInterceptor"/> 398 426 </list> 399 427 </property> … … 408 436 <list> 409 437 <ref local="authorizationInterceptor"/> 438 <ref local="loggingInterceptor"/> 410 439 </list> 411 440 </property> … … 420 449 <list> 421 450 <ref local="authorizationInterceptor"/> 451 <ref local="loggingInterceptor"/> 422 452 </list> 423 453 </property> … … 432 462 <list> 433 463 <ref local="authorizationInterceptor"/> 464 <ref local="loggingInterceptor"/> 434 465 </list> 435 466 </property> … … 444 475 <list> 445 476 <ref local="authorizationInterceptor"/> 477 <ref local="loggingInterceptor"/> 446 478 </list> 447 479 </property> … … 456 488 <list> 457 489 <ref local="authorizationInterceptor"/> 490 <ref local="loggingInterceptor"/> 458 491 </list> 459 492 </property> … … 470 503 <list> 471 504 <ref local="authorizationInterceptor"/> 505 <ref local="loggingInterceptor"/> 472 506 </list> 473 507 </property> … … 482 516 <list> 483 517 <ref local="authorizationInterceptor"/> 518 <ref local="loggingInterceptor"/> 484 519 </list> 485 520 </property> … … 494 529 <list> 495 530 <ref local="authorizationInterceptor"/> 531 <ref local="loggingInterceptor"/> 496 532 </list> 497 533 </property> … … 506 542 <list> 507 543 <ref local="authorizationInterceptor"/> 544 <ref local="loggingInterceptor"/> 508 545 </list> 509 546 </property> … … 518 555 <list> 519 556 <ref local="authorizationInterceptor"/> 557 <ref local="loggingInterceptor"/> 520 558 </list> 521 559 </property> … … 530 568 <list> 531 569 <ref local="authorizationInterceptor"/> 570 <ref local="loggingInterceptor"/> 532 571 </list> 533 572 </property> … … 542 581 <list> 543 582 <ref local="authorizationInterceptor"/> 583 <ref local="loggingInterceptor"/> 544 584 </list> 545 585 </property> … … 554 594 <list> 555 595 <ref local="authorizationInterceptor"/> 596 <ref local="loggingInterceptor"/> 556 597 </list> 557 598 </property> … … 582 623 --> 583 624 <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"/> 584 631 585 632