Back to project page RoboSpringExt.
The source code is released under:
Apache License
If you think the Android project RoboSpringExt listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * Created on 14.08.2012/*from ww w. j av a2s. c om*/ * * 2012 Daniel Thommes */ package org.robospring.ext.aop; import android.content.Context; import android.util.Log; import org.springframework.beans.factory.annotation.Autowired; public class MyBusinessLogicImpl { private BusinessLogicImpl businessLogic; private MyClass myClass; public MyBusinessLogicImpl() { Log.e("MyBusinessLogicImpl", "<init>"); } @Autowired public void setMyClass(MyClass myClass) { this.myClass = myClass; } @Autowired public void setBusinessLogic(BusinessLogicImpl businessLogic) { this.businessLogic = businessLogic; } public String doBusiness(Context context) { return "MyBusinessLogicImpl " + businessLogic.doBusiness(context) + myClass.doOtherBusiness(context); } public String doOtherBusiness(Context context) { return "MyBusinessLogicImpl "; } }