Examples of Bean


Examples of at.bestsolution.efxclipse.tooling.efxbean.fXBean.Bean

    {
      PackageDeclaration _package = u.getPackage();
      String _name = _package.getName();
      String _replace = _name.replace(".", "/");
      String _plus = (_replace + "/");
      Bean _bean = u.getBean();
      String _name_1 = _bean.getName();
      String _plus_1 = (_plus + _name_1);
      final String filePath = (_plus_1 + ".java");
      ImportManager _importManager = new ImportManager(true);
      this.manager = _importManager;
      CharSequence _generateBeanFile = this.generateBeanFile(u);
      fsa.generateFile(filePath, _generateBeanFile);
    }
    Bean _bean = u.getBean();
    boolean _isReflective = _bean.isReflective();
    if (_isReflective) {
      ImportManager _importManager = new ImportManager(true);
      this.manager = _importManager;
      PackageDeclaration _package = u.getPackage();
      String _name = _package.getName();
      String _replace = _name.replace(".", "/");
      String _plus = (_replace + "/reflective/");
      Bean _bean_1 = u.getBean();
      String _name_1 = _bean_1.getName();
      String _plus_1 = (_plus + _name_1);
      final String filePath = (_plus_1 + "Access.java");
      CharSequence _generateReflectiveAccessFile = this.generateReflectiveAccessFile(u);
      fsa.generateFile(filePath, _generateReflectiveAccessFile);
    }
View Full Code Here

Examples of atunit.spring.Bean

        GenericApplicationContext ctx = new GenericApplicationContext();

        for (Field field : fieldValues.keySet()) {

            Bean beanAnno = field.getAnnotation(Bean.class);

            AbstractBeanDefinition beandef = defineInstanceHolderFactoryBean(field.getType(), fieldValues.get(field));

            if ((beanAnno != null) && !beanAnno.value().equals("")) {
                ctx.registerBeanDefinition(beanAnno.value(), beandef);
            } else {
                BeanDefinitionReaderUtils.registerWithGeneratedName(beandef, ctx);
            }
        }

        loadBeanDefinitions(testClass, ctx);

        fillInMissingFieldBeans(testClass, ctx);


        ctx.refresh();

        for (Field field : testClass.getDeclaredFields()) {
            field.setAccessible(true);
            Bean beanAnno = field.getAnnotation(Bean.class);
            if (beanAnno == null) {
                if (fieldValues.containsKey(field)) {
                    field.set(Mycila.currentExecution().context().introspector().instance(), fieldValues.get(field));
                }
            } else {
                if (!beanAnno.value().equals("")) {
                    field.set(Mycila.currentExecution().context().introspector().instance(), ctx.getBean(beanAnno.value()));
                } else {
                    String[] beanNames = ctx.getBeanNamesForType(field.getType());
                    if (beanNames.length < 1) {
                        throw new BeanCreationException("There are no beans defined with type " + field.getType());
                    }
View Full Code Here

Examples of com.alibaba.json.bvtVO.Bean

public class Bug_for_jial10802 extends TestCase {
    public void test_for_jial10802() throws Exception {
        Page<Bean> page = new Page<Bean>();
        page.setCount(1);
        List<Bean> items = new ArrayList<Bean>();
        Bean item = new Bean();
        item.setId(1);
        item.setName("name");
        item.setDesc("desc");
        items.add(item);
        page.setItems(items);
        String json = JSON.toJSONString(page, SerializerFeature.PrettyFormat);

        Page<Bean> jsonPage = JSON.parseObject(json, new TypeReference<Page<Bean>>() {
View Full Code Here

Examples of com.caucho.ejb.metadata.Bean

  /**
   * Adds a bean.
   */
  public Bean createBean()
  {
    return new Bean(_ejbContainer);
  }
View Full Code Here

Examples of com.emitrom.touch4j.client.data.BeanModelMarker.BEAN

    return composer.getCreatedClassName();
  }

  protected JClassType getMarkerBean(JClassType type)
      throws NotFoundException {
    BEAN pojo = type.getAnnotation(BEAN.class);
    return oracle.getType(pojo.value().getCanonicalName());
  }
View Full Code Here

Examples of com.envoisolutions.sxc.jaxb.model.Bean

            toSet = block.decl(context.toJClass(targetType), propertyName, JExpr._null());
        } else if (targetType.equals(Object.class) || targetType.equals(Element.class)) {
            toSet = block.decl(context.toJClass(Element.class), propertyName, xsrVar.invoke("getElementAsDomElement"));
        } else {
            // Complex type which will already have an element builder defined
            Bean targetBean = model.getBean(targetType);
            JAXBObjectBuilder elementBuilder = builders.get(targetBean);
            if (elementBuilder == null) {
                toSet = block.decl(context.toJClass(targetType), propertyName, builder.getReadContextVar().invoke("unexpectedXsiType").arg(builder.getXSR()).arg(JExpr.dotclass(context.toJClass(targetType))));
            } else {
                // invoke the reader method
View Full Code Here

Examples of com.extjs.gxt.ui.client.data.BeanModelMarker.BEAN

    }
    return composer.getCreatedClassName();
  }

  protected JClassType getMarkerBean(JClassType type) throws NotFoundException {
    BEAN pojo = type.getAnnotation(BEAN.class);
    return oracle.getType(pojo.value().getCanonicalName());
  }
View Full Code Here

Examples of com.google.appengine.api.datastore.shared.model.Bean

        super("Bean", Bean.class);
    }

    @Override
    public Bean entityToModel(com.google.appengine.api.datastore.Entity entity) {
        Bean model = new Bean();
        model.setB((java.lang.Boolean) entity.getProperty("b"));
        model.setD((java.lang.Double) entity.getProperty("d"));
        model.setDa((java.util.Date) entity.getProperty("da"));
        model.setF(doubleToFloat((java.lang.Double) entity.getProperty("f")));
        model.setKey(entity.getKey());
        model.setList(toList(java.lang.String.class, entity.getProperty("list")));
        java.util.HashMap<java.lang.String,java.lang.String> _map = blobToSerializable((com.google.appengine.api.datastore.Blob) entity.getProperty("map"));
        model.setMap(_map);
        model.setS((java.lang.String) entity.getProperty("s"));
        return model;
    }
View Full Code Here

Examples of com.sun.jersey.samples.multipart.resources.Bean

    public void testXmlJAXBPart() {
        WebResource webResource = resource().path("form/xml-jaxb-part");

        FormDataMultiPart mp = new FormDataMultiPart();
        mp.bodyPart(new FormDataBodyPart(FormDataContentDisposition.name("bean").fileName("bean").build(),
                new Bean("BEAN"),
                MediaType.APPLICATION_XML_TYPE));
        mp.bodyPart(new FormDataBodyPart(FormDataContentDisposition.name("string").fileName("string").build(),
                "STRING"));

        String s = webResource.type(MediaType.MULTIPART_FORM_DATA_TYPE).post(String.class, mp);
View Full Code Here

Examples of es.internna.framework.annotations.Bean

                    try {
                        Resource[] resources = this.applicationContext.getResources(packagePattern);
                        for (Resource resource : resources) {
                            Class<?> clazz = loadClass(configurableListableBeanFactory.getBeanClassLoader(), packagePattern, resource);
                            if (log.isDebugEnabled()) log.debug("Scanned " + clazz.getName());
                            Bean bean = clazz.getAnnotation(Bean.class);
                            if (bean != null) {
                                if (log.isInfoEnabled()) log.info("Detected @Bean annotation in " + resource.getFilename());
                                createAndRegisterBean(registry, clazz, bean);
                            }
                        }
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.