diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-04-25 21:53:33 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-04-25 21:53:33 +0530 |
| commit | 4afcff940551079617e8f4116e52bb0ef9df7fcc (patch) | |
| tree | cbaed6a2a53c7d032bfafaa38b94e4fc607f3e76 /spring-framework/24-aop-aspectj-annotations2/src/main/resources/META-INF/spring | |
| parent | 7b08f1155e1cb8bf263c3570eeb119970407a037 (diff) | |
Added Spring Framework sample code
Diffstat (limited to 'spring-framework/24-aop-aspectj-annotations2/src/main/resources/META-INF/spring')
| -rw-r--r-- | spring-framework/24-aop-aspectj-annotations2/src/main/resources/META-INF/spring/applicationContext.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/spring-framework/24-aop-aspectj-annotations2/src/main/resources/META-INF/spring/applicationContext.xml b/spring-framework/24-aop-aspectj-annotations2/src/main/resources/META-INF/spring/applicationContext.xml new file mode 100644 index 0000000..1da13a1 --- /dev/null +++ b/spring-framework/24-aop-aspectj-annotations2/src/main/resources/META-INF/spring/applicationContext.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + 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/aop http://www.springframework.org/schema/aop/spring-aop.xsd"> + + <!-- Enabled annotation based AOP --> + <aop:aspectj-autoproxy/> + + <!-- This been describes pointcuts --> + <bean id="myPointcuts" class="com.example.spring.aop.security.MyPointcuts" /> + + <!-- This bean simply references pointcuts --> + <bean id="accessChecker" class="com.example.spring.aop.security.AccessChecker" /> + + + <bean id="account" class="com.example.spring.aop.Account"> + <property name="accNo" value="1000"></property> + <property name="balance" value="250.00"></property> + </bean> + +</beans>
\ No newline at end of file |
