Android Open Source - RoboSpringExt My Business Logic Impl






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

}




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