final String method = m.getAnnotation(RequestMapping.class)
.method();
final String view = m.getAnnotation(RequestMapping.class).view();
String key = method + "@" + uri;
BeanHandle beanHandle = new BeanHandle(o, m, getViewHandle(view));
map.put(key, beanHandle);
uriList.add(key);
log.info("register uri [{}]", key);
if (key.charAt(key.length() - 1) == '/')
key = key.substring(0, key.length() - 1);
else
key += "/";
map.put(key, beanHandle);
uriList.add(key);
log.info("register uri [{}]", key);
}
list = getInterceptor(c);
for (Method m : list) {
m.setAccessible(true);
String uriPattern = c.getAnnotation(Interceptor.class).uri();
final String view = c.getAnnotation(Interceptor.class).view();
final Integer order = c.getAnnotation(Interceptor.class).order();
List<String> l = getInterceptUri(uriPattern);
for (String i : l) {
String key = m.getName().charAt(0) + "#" + i;
BeanHandle beanHandle = new BeanHandle(o, m,
getViewHandle(view));
beanHandle.setInterceptOrder(order);
Set<BeanHandle> interceptorSet = (Set<BeanHandle>) map.get(key);
if (interceptorSet == null) {
interceptorSet = new TreeSet<BeanHandle>();
interceptorSet.add(beanHandle);
map.put(key, interceptorSet);