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; //from w w w. jav a 2s .c o m import android.app.Application; import android.util.Log; import org.robospring.RoboSpring; import org.springframework.context.support.AbstractXmlApplicationContext; public abstract class RoboSpringApplication extends Application { @Override public void onCreate() { super.onCreate(); long startTime = System.currentTimeMillis(); RoboSpring.autowire(RoboSpringApplication.this, "applicationContext.xml"); AbstractXmlApplicationContext ctx = RoboSpring.getContext(); final long duration = System.currentTimeMillis() - startTime; Log.e("RoboSpringApplication", "RoboSpring load Time: " + duration + " ms"); } }