public static boolean isAppBean(Object target) { return target != null && isAppBeanType(target.getClass()); }
private void processBean(boolean register, Object bean) { Class<?> clazz; U.notNull(bean, "bean"); IoCContext context = setup.context(); if (bean instanceof Class<?>) { clazz = (Class<?>) bean; bean = null; } else { clazz = bean.getClass(); } if (!Cls.isAppBeanType(clazz)) { throw new RuntimeException("Expected a bean, but found value of type: " + clazz.getName()); } if (!Msc.matchingProfile(clazz)) { return; } Log.debug("Processing bean", "class", clazz, "instance", bean); List<String> componentPaths = getControllerUris(clazz); for (String ctxPath : componentPaths) { for (Method method : Cls.getMethods(clazz)) { if (shouldExpose(method)) { if (bean == null) { bean = register ? context.singleton(clazz) : null; } registerOrDeregister(register, bean, ctxPath, method); } } } }
if (Cls.isAppBeanType(type)) { return new BeanParamRetriever(customization, type, name, valid != null);
if (instance == null && Cls.isAppBeanType(type)) { instance = provideNewInstanceOf(type, properties);
private void processBean(boolean register, Object bean) { Class<?> clazz; U.notNull(bean, "bean"); IoCContext context = setup.context(); if (bean instanceof Class<?>) { clazz = (Class<?>) bean; bean = null; } else { clazz = bean.getClass(); } if (!Cls.isAppBeanType(clazz)) { throw new RuntimeException("Expected a bean, but found value of type: " + clazz.getName()); } if (!Msc.matchingProfile(clazz)) { return; } Log.debug("Processing bean", "class", clazz, "instance", bean); List<String> componentPaths = getControllerUris(clazz); for (String ctxPath : componentPaths) { for (Method method : Cls.getMethods(clazz)) { if (shouldExpose(method)) { if (bean == null) { bean = register ? context.singleton(clazz) : null; } registerOrDeregister(register, bean, ctxPath, method); } } } }
if (Cls.isAppBeanType(type)) { return new BeanParamRetriever(customization, type, name, valid != null);
if (instance == null && Cls.isAppBeanType(type)) { instance = provideNewInstanceOf(type, properties);