String name = ref.name() != null && !ref.name().equals("") ? ref.name() : targetName; Object value = getReference(name, type, sc); setMethod(instance, method, value); } else if (method.isAnnotationPresent(Property.class)) { Property prop = method.getAnnotation(Property.class); String name = prop.name() != null && !prop.name().equals("") ? prop.name() : targetName; Object value = getProperty(name, sc); setMethod(instance, method, value); } else if (method.isAnnotationPresent(ComponentName.class)) { RuntimeComponent rc = (RuntimeComponent)sc.getAttribute(COMPONENT_ATTR); setMethod(instance, method, rc.getName()); } else if (method.isAnnotationPresent(Context.class)) { setMethod(instance, method, getComponentContext(sc));
String name = ref.name() != null && !ref.name().equals("") ? ref.name() : targetName; Object value = getReference(name, type, sc); setMethod(instance, method, value); } else if (method.isAnnotationPresent(Property.class)) { Property prop = method.getAnnotation(Property.class); String name = prop.name() != null && !prop.name().equals("") ? prop.name() : targetName; Object value = getProperty(name, sc); setMethod(instance, method, value); } else if (method.isAnnotationPresent(ComponentName.class)) { RuntimeComponent rc = (RuntimeComponent)sc.getAttribute(COMPONENT_ATTR); setMethod(instance, method, rc.getName()); } else if (method.isAnnotationPresent(Context.class)) { setMethod(instance, method, getComponentContext(sc));