private static boolean shouldWaive(Method getter, Class<?> implementClass) { int modifiers = getter.getModifiers(); if (Modifier.isTransient(modifiers) || Modifier.isStatic(modifiers)) { return true; } String fieldName = getter.getName().substring(3); Class<?> entityType = Generics.getReturnType(getter, implementClass); return ParamValueLoaderService.noBind(entityType) || getter.isAnnotationPresent(NoBind.class) || getter.isAnnotationPresent(Stateless.class) || getter.isAnnotationPresent(Global.class) || ParamValueLoaderService.isInBlackList(fieldName) || Object.class.equals(entityType) || Class.class.equals(entityType) || OsglConfig.globalMappingFilter_shouldIgnore(fieldName); }
private static boolean shouldWaive(Method getter, Class<?> implementClass) { int modifiers = getter.getModifiers(); if (Modifier.isTransient(modifiers) || Modifier.isStatic(modifiers)) { return true; } String fieldName = getter.getName().substring(3); Class<?> entityType = Generics.getReturnType(getter, implementClass); return ParamValueLoaderService.noBind(entityType) || getter.isAnnotationPresent(NoBind.class) || getter.isAnnotationPresent(Stateless.class) || getter.isAnnotationPresent(Global.class) || ParamValueLoaderService.isInBlackList(fieldName) || Object.class.equals(entityType) || Class.class.equals(entityType) || OsglConfig.globalMappingFilter_shouldIgnore(fieldName); }
private void buildPropertyPath(String context, Method m, Class<?> c, List<String> repo) { if (m.getParameterTypes().length > 0) { return; } String name = m.getName(); if ("getClass".equals(name)) { return; } String propName = ""; if (name.startsWith("get")) { propName = getPropName(name); } else if (name.startsWith("is")) { propName = isPropName(name); } if (S.isEmpty(propName)) { return; } Class returnType = Generics.getReturnType(m, c); buildPropertyPath(returnType, m.getGenericReturnType(), context, propName, repo); }
private void buildPropertyPath(String context, Method m, Class<?> c, List<String> repo) { if (m.getParameterTypes().length > 0) { return; } String name = m.getName(); if ("getClass".equals(name)) { return; } String propName = ""; if (name.startsWith("get")) { propName = getPropName(name); } else if (name.startsWith("is")) { propName = isPropName(name); } if (S.isEmpty(propName)) { return; } Class returnType = Generics.getReturnType(m, c); buildPropertyPath(returnType, m.getGenericReturnType(), context, propName, repo); }
final Class returnClass = Generics.getReturnType(m, clazz); Type returnType = m.getGenericReturnType(); Class paramClass = null;
final Class returnClass = Generics.getReturnType(m, clazz); Type returnType = m.getGenericReturnType(); Class paramClass = null;
Class<?> controllerClass = invoker.controllerClass(); Method method = invoker.method(); returnType = Generics.getReturnType(method, controllerClass); PropertySpec pspec = method.getAnnotation(PropertySpec.class); if (null != pspec) {
Class<?> controllerClass = invoker.controllerClass(); Method method = invoker.method(); returnType = Generics.getReturnType(method, controllerClass); PropertySpec pspec = method.getAnnotation(PropertySpec.class); if (null != pspec) {
throw E.unexpected(e); this.returnType = Generics.getReturnType(method, controllerClass); this.returnString = this.returnType == String.class; Integer priority = handler.priority();
throw E.unexpected(e); this.returnType = Generics.getReturnType(method, controllerClass); this.returnString = this.returnType == String.class; Integer priority = handler.priority();