You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by wi...@apache.org on 2013/04/03 12:33:14 UTC

[06/50] [abbrv] git commit: updated refs/heads/kvm-vnc-listen to 3890860

CLOUDSTACK-1746: update usage server startup configuration


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c3c7e7e5
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c3c7e7e5
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c3c7e7e5

Branch: refs/heads/kvm-vnc-listen
Commit: c3c7e7e57086dc4cdbca2dcb4ce0fe4a67d5ad62
Parents: 85971b5
Author: Kelven Yang <ke...@gmail.com>
Authored: Wed Mar 27 14:31:05 2013 -0700
Committer: Kelven Yang <ke...@gmail.com>
Committed: Fri Mar 29 11:12:36 2013 -0700

----------------------------------------------------------------------
 usage/resources/usageApplicationContext.xml |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c3c7e7e5/usage/resources/usageApplicationContext.xml
----------------------------------------------------------------------
diff --git a/usage/resources/usageApplicationContext.xml b/usage/resources/usageApplicationContext.xml
index 0340038..fc67e0a 100644
--- a/usage/resources/usageApplicationContext.xml
+++ b/usage/resources/usageApplicationContext.xml
@@ -38,17 +38,16 @@
   <!--
     @DB support
   -->
-  <aop:config proxy-target-class="true">
-    <aop:aspect id="dbContextBuilder" ref="transactionContextBuilder">
-        <aop:pointcut id="captureAnyMethod"
-            expression="execution(* *(..))" 
-        />
-        <aop:around pointcut-ref="captureAnyMethod" method="AroundAnyMethod"/> 
-    </aop:aspect>
+  <bean id="transactionContextBuilder" class="com.cloud.utils.db.TransactionContextBuilder" />
 
-  </aop:config>
+  <bean id="instantiatePostProcessor" class="com.cloud.utils.component.ComponentInstantiationPostProcessor">
+    <property name="Interceptors">
+        <list>
+            <ref bean="transactionContextBuilder" />
+        </list>
+    </property>
+  </bean>
   
-  <bean id="transactionContextBuilder" class="com.cloud.utils.db.TransactionContextBuilder" />
   <bean id="ComponentContext" class="com.cloud.utils.component.ComponentContext" />
  
 </beans>