Examples of bean()


Examples of jfun.yan.Component.bean()

      }
     
     
      //test nested bean
      testHigherOrderMethod(
          nested.bean(new String[]{"inner"})
          .withProperty("inner",
              Components.ctor(MultiBean.InnerBean.class)
          )
          .getter("inner").getter("list")
      );
View Full Code Here

Examples of jfun.yan.Component.bean()

          )
          .getter("inner").getter("list")
      );
      try{
        testHigherOrderMethod(
            nested.bean(new String[]{"inner"})
            .withProperty("inner",
                Components.ctor(MultiBean.InnerBean.class)
            )
            .getter("inner").getter("listAsObject")
        );
View Full Code Here

Examples of jfun.yan.Component.bean()

          )
          .getter("innerAsObject").getter("listAsObject")
      );
      try{
        testHigherOrderMethod(
            nested.bean(new String[]{"inner"})
            .withProperty("inner",
                Components.ctor(MultiBean.InnerBean.class)
            )
            .getter("innerAsObject").getter("list")
        );
View Full Code Here

Examples of org.auraframework.system.Annotations.Controller.bean()

        if (ann == null) {
            throw new InvalidDefinitionException(String.format(
                    "@Controller annotation is required on all Controllers.  Not found on %s", descriptor),
                    builder.getLocation());
        }
        builder.setBean(ann.bean());
        try {
            builder.setActionMap(createActions(c, builder.getDescriptor(), ann.bean()));
        } catch (QuickFixException qfe) {
            builder.setParseError(qfe);
        }
View Full Code Here

Examples of org.auraframework.system.Annotations.Controller.bean()

                    "@Controller annotation is required on all Controllers.  Not found on %s", descriptor),
                    builder.getLocation());
        }
        builder.setBean(ann.bean());
        try {
            builder.setActionMap(createActions(c, builder.getDescriptor(), ann.bean()));
        } catch (QuickFixException qfe) {
            builder.setParseError(qfe);
        }
        return builder;
    }
View Full Code Here

Examples of org.glassfish.admin.rest.composite.metadata.AttributeReference.bean()

                String bean = null;
                String attribute = null;
                AttributeReference ar = method.getAnnotation(AttributeReference.class);
                if (ar != null) {
                    bean = ar.bean();
                    attribute = ar.attribute();
                }
                if (!StringUtil.notEmpty(bean)) {
                    bean = defaultBean;
                }
View Full Code Here

Examples of org.glassfish.admin.rest.composite.metadata.AttributeReference.bean()

                String bean = null;
                String attribute = null;
                AttributeReference ar = method.getAnnotation(AttributeReference.class);
                if (ar != null) {
                    bean = ar.bean();
                    attribute = ar.attribute();
                }
                if (!StringUtil.notEmpty(bean)) {
                    bean = defaultBean;
                }
View Full Code Here

Examples of org.glassfish.admin.rest.composite.metadata.DefaultBeanReference.bean()

    private void analyzeInterface(Class<?> iface, Map<String, Map<String, Object>> properties) throws SecurityException {
        // find class level bean reference
        String defaultBean = null;
        if (iface.isAnnotationPresent(DefaultBeanReference.class)) {
            DefaultBeanReference beanRef = iface.getAnnotation(DefaultBeanReference.class);
            defaultBean = beanRef.bean();  
        }

        for (Method method : iface.getMethods()) {
            String name = method.getName();
            final boolean isGetter = name.startsWith("get");
View Full Code Here

Examples of org.glassfish.admin.rest.composite.metadata.DefaultBeanReference.bean()

    private void analyzeInterface(Class<?> iface, Map<String, Map<String, Object>> properties) throws SecurityException {
        // find class level bean reference
        String defaultBean = null;
        if (iface.isAnnotationPresent(DefaultBeanReference.class)) {
            DefaultBeanReference beanRef = iface.getAnnotation(DefaultBeanReference.class);
            defaultBean = beanRef.bean();  
        }

        for (Method method : iface.getMethods()) {
            String name = method.getName();
            final boolean isGetter = name.startsWith("get");
View Full Code Here

Examples of org.infinispan.config.ConfigurationDocRef.bean()

      String desc = null;
      if (field.isAnnotationPresent(ConfigurationDoc.class)) {
         desc = field.getAnnotation(ConfigurationDoc.class).desc();
      } else if (field.isAnnotationPresent(ConfigurationDocRef.class)) {
         ConfigurationDocRef docRef = field.getAnnotation(ConfigurationDocRef.class);
         Doc fieldDocRec = findDocElement(docRef.bean(), docRef.targetElement());
         desc = fieldDocRec.commentText();
      }
      return desc;
   }
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.