Пример #1
0
 /**
  * 增加Action类,已有的Action类将被覆盖<br>
  * 所有Action都是以单例模式存在的!
  *
  * @param actionClass 带注解的Action类
  */
 public static void setAction(Class<? extends Action> actionClass) {
   setAction((Action) Singleton.get(actionClass));
 }
Пример #2
0
 /**
  * 设置通配Filter类,已有的Filter类将被覆盖
  *
  * @param filterClass Filter类
  */
 public static void setWildCardFilter(Class<? extends Filter> filterClass) {
   setWildCardFilter((Filter) Singleton.get(filterClass));
 }
Пример #3
0
 /**
  * 增加Action类,已有的Action类将被覆盖<br>
  * 所有Action都是以单例模式存在的!
  *
  * @param path 拦截路径(必须以"/"开头)
  * @param actionClass Action类
  */
 public static void setAction(String path, Class<? extends Action> actionClass) {
   setAction(path, (Action) Singleton.get(actionClass));
 }
Пример #4
0
 /**
  * 设置Filter类,已有的Filter类将被覆盖
  *
  * @param path 拦截路径(必须以"/"开头)
  * @param filterClass Filter类
  */
 public static void setFilter(String path, Class<? extends Filter> filterClass) {
   setFilter(path, (Filter) Singleton.get(filterClass));
 }