Examples of containsViewBean()


Examples of org.jibeframework.core.Context.containsViewBean()

      for (Map.Entry<Field, Object> f : injectionCache.entrySet()) {
        ReflectionUtils.makeAccessible(f.getKey());
        Object dependency = null;
        if (f.getValue() instanceof String) {
          String beanId = (String) f.getValue();
          if (context.containsViewBean(beanId)) {
            dependency = context.getViewBean(beanId);
          } else {
            dependency = applicationContext.getBean(beanId);
          }
        } else {
View Full Code Here

Examples of org.jibeframework.core.Context.containsViewBean()

    String beanName = StringUtils.substringBeforeLast(methodId, ".");
    String methodName = StringUtils.substringAfterLast(methodId, ".");
    Class<?> userClass = null;
    Context context = Context.getCurrentContext();
    Object bean = null;
    if (context.containsViewBean(beanName)) {
      bean = context.getViewBean(beanName);
      userClass = ((GroovyObject) bean).getMetaClass().getTheClass();
    } else {
      bean = applicationContext.getBean(beanName);
      userClass = ClassUtils.getUserClass(bean.getClass());
View Full Code Here

Examples of org.jibeframework.core.Context.containsViewBean()

  @SuppressWarnings("unchecked")
  @Override
  protected Object getValue() {
    Object config = null;
    Context context = Context.getCurrentContext();
    if (context.containsViewBean(extendedId)) {
      GroovyObject bean = (GroovyObject) context.getViewBean(extendedId);
      config = bean.invokeMethod("getComponentDefinition", null);
    } else {
      config = configService.getConfig(extendedId);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.