Examples of Bean


Examples of org.milyn.javabean.Bean

        Smooks smooks = new Smooks();

        try {
            smooks.setFilterSettings(FilterSettings.DEFAULT_SAX);

            smooks.addVisitor(new Bean(HashMap.class, "object").bindTo("a", "a"));
            smooks.addVisitor(new FreeMarkerTemplateProcessor(new TemplatingConfiguration("${object.a}").setUsage(OutputTo.stream("fileOS"))), "a");
            smooks.addVisitor(new FileOutputStreamResource().setFileNamePattern("${object.a}.xml").setDestinationDirectoryPattern("target/config-01-test/${object.a}").setResourceName("fileOS"), "a");

            smooks.filterSource(new StringSource("<root><a>1</a><a>2</a><a>3</a></root>"));
View Full Code Here

Examples of org.milyn.javabean.binding.model.Bean

    protected GetterGraph constructContextualGetter(Bean bean) {
        return addToContextualGetter(new GetterGraph(), bean);
    }

    private GetterGraph addToContextualGetter(GetterGraph contextualGetter, Bean bean) {
        Bean theBean = bean;

        while(theBean != null) {
            Bean parentBean = theBean.getWiredInto();

            if(parentBean != null) {
                if(parentBean.isCollection()){
                    // Contextual selectors stop once they hit a parent Collection theBean...
                    Bean wiredInto = parentBean.getWiredInto();
                    if(wiredInto != null) {
                        // Use the collection item's beanId as the context object name
                        // because collection items don't have property names...
                        contextualGetter.setContextObjectName(theBean.getBeanId());
                    }
View Full Code Here

Examples of org.richfaces.el.model.Bean

    protected Person person;

    @Before
    public void setUp() throws Exception {
        expressionFactory = new ExpressionFactoryImpl();
        bean = new Bean();
        person = new Person();
        bean.setString("foo");
        ArrayList<String> list = new ArrayList<String>(1);
        list.add("bar");
        bean.setList(list);
View Full Code Here

Examples of org.springframework.config.java.annotation.Bean

    // contains the beanNames resolved based on the method signature
    final Set<String> noArgMethodsSeen = new HashSet<String>();

    ReflectionUtils.doWithMethods(configurationClass, new MethodCallback() {
      public void doWith(Method m) throws IllegalArgumentException, IllegalAccessException {
        Bean beanAnnotation = AnnotationUtils.findAnnotation(m, Bean.class);
        // Determine bean name
        String beanName = beanNamingStrategy.getBeanName(m);

        if (beanAnnotation != null) {
          if (!noArgMethodsSeen.contains(beanName)) {
            // If the bean already exists in the factory, don't emit
            // a bean definition. This may or may not be legal,
            // depending on whether the @Bean annotation allows
            // overriding
            if (owningBeanFactory.containsLocalBean(beanName)) {
              if (!beanAnnotation.allowOverriding()) {
                String message = format(
                    "A bean named '%s' already exists. Consider using @Bean(allowOverriding=true)",
                    beanName);
                throw new IllegalStateException(message);
              }
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.core.internal.model.Bean

   
    BeansMapEntry beansMapEntry = getCCIModelElementForMappingFile(bean, customConverterId);

    if (beansMapEntry != null) {
      if (beansMapEntry.getValue() instanceof Bean) {
        Bean cciBean = (Bean)beansMapEntry.getValue();
        return cciBean.getBeanDefinition().getBeanClassName();
      } else if (beansMapEntry.getValue() instanceof BeanReference) {
        BeanReference beanRef = (BeanReference)beansMapEntry.getValue();       
        String beanName = beanRef.getBeanName();
       
        Set<IBeansProject> projects = BeansCorePlugin.getModel().getProjects();
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.graph.model.Bean

  @Override
  public boolean isEnabled() {
    EditPart part = getFirstSelectedEditPart();
    if (part instanceof BeanPart) {
      Bean bean = ((BeanPart) part).getBean();
      if (bean.isRootBean() && bean.getClassName() != null) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

Examples of rocket.beans.rebind.Bean

    final BeanTag tag = new BeanTag();
    tag.setElement(element);
    tag.setFilename(this.getFilename());
    tag.setPlaceHolderResolver(this.getPlaceHolderResolver());

    final Bean bean = new Bean();
    bean.setEagerLoaded(tag.isEagerLoaded());
    bean.setId(tag.getId());
    bean.setSingleton(tag.isSingleton());
    bean.setTypeName(tag.getClassName());
    bean.setFactoryMethod(tag.getFactoryMethod());
    bean.setInitMethod(tag.getInitMethod());
    bean.setDestroyMethod(tag.getDestroyMethod());

    this.addBean(bean);

    this.setParentBean(bean);
    bean.setConstructorValues(this.visitConstructorValues(tag.getConstructorValues()));
    bean.setProperties(this.visitProperties(tag.getProperties()));

    this.removeParentBean();
  }
View Full Code Here

Examples of upc.iluminados.modelo.Bean

  }
 
    @Test
  public void registrar(){
      Usuario duenio = new Usuario();
      Bean resultado = service.registrar(duenio);
      assertEquals(resultado.getStatus(),"OK" );
  }
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.