@Override public void clearScreenReflectionCache() { uiControllerReflectionInspector.clearCache(); } }
protected TargetIntrospectionData getTargetIntrospectionDataNotCached(Class<?> concreteClass) { Method[] methods = ReflectionUtils.getUniqueDeclaredMethods(concreteClass); Map<Class, MethodHandle> addListenerMethods = getAddListenerMethodsNotCached(concreteClass, methods); Map<String, MethodHandle> installTargetMethods = getInstallTargetMethodsNotCached(concreteClass, methods); return new TargetIntrospectionData(addListenerMethods, installTargetMethods); }
protected ScreenIntrospectionData getScreenIntrospectionDataNotCached(Class<?> concreteClass) { Method[] methods = ReflectionUtils.getUniqueDeclaredMethods(concreteClass); List<InjectElement> injectElements = getAnnotatedInjectElementsNotCached(concreteClass); List<AnnotatedMethod<Subscribe>> subscribeMethods = getAnnotatedSubscribeMethodsNotCached(concreteClass, methods); List<AnnotatedMethod<Install>> installMethods = getAnnotatedInstallMethodsNotCached(concreteClass, methods); List<Method> eventListenerMethods = getAnnotatedListenerMethodsNotCached(concreteClass, methods); return new ScreenIntrospectionData(injectElements, eventListenerMethods, subscribeMethods, installMethods); }
Collections.reverse(classes); for (Field field : getAllFields(classes)) { Class aClass = injectionAnnotation(field); if (aClass != null) { if (toInject.isEmpty()) { Class aClass = injectionAnnotation(method); if (aClass != null) { if (toInject.isEmpty()) {
MethodHandle consumerMethodFactory = reflectionInspector.getConsumerMethodFactory(clazz, annotatedMethod.getMethodHandle(), eventType); try { MethodHandle addListenerMethod = reflectionInspector.getAddListenerMethod(eventTarget.getClass(), eventType); if (addListenerMethod == null) { throw new DevelopmentException(String.format("Target %s does not support event type %s",
Class<?> dc1 = getDeclaringClass(m1); Class<?> dc2 = getDeclaringClass(m2);