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/* w w w . j av a 2s . co m*/ * * 2012 Daniel Thommes */ package org.robospring.ext.aop; import android.content.Context; import android.content.Intent; import android.util.Log; import org.robospring.ext.MyRoboSpringService; import org.springframework.beans.factory.annotation.Autowired; public class MyClass { private MyBusinessLogicImpl businessLogic; public MyClass() { Log.e("MyClass", "<init>"); } @Autowired public void setBusinessLogic(MyBusinessLogicImpl businessLogic) { this.businessLogic = businessLogic; } public String ae(Context context) { context.startService(new Intent(context, MyRoboSpringService.class)); return "MyClass " + businessLogic.doBusiness(context); } public String doOtherBusiness(Context context) { return "MyClass "; } }