Back to project page android-mvc-framework.
The source code is released under:
Apache License
If you think the Android project android-mvc-framework 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 com.android_mvc.framework.controller.routing; //from w w w . j ava 2 s . c o m import java.util.HashMap; import android.app.Activity; /** * ???????????????????????????????????????????? * @author id:language_and_engineering * */ public class RoutingTable { // ?????????????????? private HashMap<String, Class<? extends Activity>> table = new HashMap<String, Class<? extends Activity>>(); /** * ??????????????? * ?????Activity???????????STAY_THIS_PAGE???????????????????????????? */ public RoutingTable map(String route_id, Class<? extends Activity> destActivityClass) { table.put( route_id, destActivityClass ); return this; } /** * ???????????????????????????????????????? * ????????????????????null?????? */ public Class<? extends Activity> getActivityByRouteId(String routeId) { return table.get(routeId); } //DIARY: ???????????????????????????????????HashMap??????????????????????????????????????????? // http://d.hatena.ne.jp/language_and_engineering/20120213/p1 // ???????????????????????????????@SuppressWarnings("serial")??????????????? // http://code.google.com/p/android-mvc-framework/source/browse/tags/20120215_ver0.1/src/com/android_mvc/sample_project/controller/Controller.java }