|
|
@@ -29,8 +29,8 @@ public abstract class Routes {
|
|
|
|
|
|
private static String baseViewPath;
|
|
|
|
|
|
- private final Map<String, Class<? extends Controller>> map = new HashMap<String, Class<? extends Controller>>();
|
|
|
- private final Map<String, String> viewPathMap = new HashMap<String, String>();
|
|
|
+ private Map<String, Class<? extends Controller>> map = new HashMap<String, Class<? extends Controller>>();
|
|
|
+ private Map<String, String> viewPathMap = new HashMap<String, String>();
|
|
|
|
|
|
/**
|
|
|
* you must implement config method and use add method to config route
|
|
|
@@ -129,6 +129,14 @@ public abstract class Routes {
|
|
|
|
|
|
Routes.baseViewPath = baseViewPath;
|
|
|
}
|
|
|
+
|
|
|
+ public void clear() {
|
|
|
+ map.clear();
|
|
|
+ viewPathMap.clear();
|
|
|
+
|
|
|
+ map = null;
|
|
|
+ viewPathMap = null;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|