Subversion Repository Public Repository

Satyam

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:c="http://www.springframework.org/schema/c"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd" >
    
<context:component-scan base-package="com.bestray.healthcareemr">
    <context:include-filter type="regex" 
                       expression="com.bestray.healthcareemr.Controller.*" />
    <context:include-filter type="regex" 
                       expression="com.bestray.healthcareemr.ServiceImpl.*" />
    <context:include-filter type="regex" 
                       expression="com.bestray.healthcareemr.DaoImpl.*" />
    <context:include-filter type="regex" 
                       expression="com.bestray.healthcareemr.Util.*" />
 </context:component-scan >

<aop:aspectj-autoproxy />
<import resource="healthCareDataAccessContext.xml"/>


 <!-- Aspect -->
<bean id="logAspect" class="com.bestray.healthcareemr.Util.LoggerAspect" />

<aop:config>
<aop:aspect id="aspectLoggging" ref="logAspect">
    
    <aop:pointcut id="daoclass"
       expression="execution(* com.bestray.healthcareemr.Dao.*.*(..))"/>
    <aop:pointcut id="serviceclass"
       expression="execution(* com.bestray.healthcareemr.Service.*.*(..))"/>
   
    <!-- @AfterThrowing -->
    <aop:after-throwing method="daologAfterThrowing" throwing="error" pointcut-ref="daoclass" />
    <aop:after-throwing method="servicelogAfterThrowing" throwing="error" pointcut-ref="serviceclass" />
    
    <!-- @AfterReturning -->
    <aop:after-returning method="daologAfterReturning" returning="result" pointcut-ref="daoclass" />
    <aop:after-returning method="servicelogAfterReturning" returning="result" pointcut-ref="serviceclass" />
    
    <!-- @Around -->
    <aop:around method="daologAround" pointcut-ref="daoclass"/>
    <aop:around method="servicelogAround" pointcut-ref="serviceclass"/>
     
</aop:aspect>
 
</aop:config>

</beans>

Commits for Satyam/AuroCareEMR/src/main/resources/healthCareBeans.xml

Diff revisions: vs.
Revision Author Commited Message
1 girijabapi picture girijabapi Fri 20 Jul, 2018 05:59:17 +0000