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.
package org.robospring.ext; //w w w . ja v a2 s . c om import android.content.Intent; import android.os.IBinder; import android.util.Log; import org.robospring.ext.aop.MyBusinessLogicImpl; import org.robospring.ext.aop.MyClass; import org.springframework.beans.factory.annotation.Autowired; public class MyRoboSpringService extends RoboSpringService { @Autowired private MyClass myClass; @Autowired private MyBusinessLogicImpl myBusinessLogic; public MyRoboSpringService() { Log.e("MyRoboSpringService", "<init>"); } @Override public int onStartCommand(Intent intent, int flags, int startId) { Log.e("MyRoboSpringService", "onStartCommand <init> " + myBusinessLogic.doOtherBusiness(this)); return super.onStartCommand(intent, flags, startId); } @Override public IBinder onBind(Intent intent) { return null; } }