Android Open Source - RoboSpringExt My Class






From Project

Back to project page RoboSpringExt.

License

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.

Java Source Code

/**
 * 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 ";
    }

}




Java Source Code List

org.robospring.ext.Location.java
org.robospring.ext.MyApplication.java
org.robospring.ext.MyBroadcastReceiver.java
org.robospring.ext.MyRoboSpringService.java
org.robospring.ext.Person.java
org.robospring.ext.RoboSpringApplication.java
org.robospring.ext.RoboSpringBroadcastReceiver.java
org.robospring.ext.RoboSpringExampleActivity.java
org.robospring.ext.RoboSpringIntentService.java
org.robospring.ext.RoboSpringService.java
org.robospring.ext.aop.BusinessLogicImpl.java
org.robospring.ext.aop.BusinessLogic.java
org.robospring.ext.aop.MyBusinessLogicImpl.java
org.robospring.ext.aop.MyClass.java