Examples of BeansConfig


Examples of com.caucho.config.cfg.BeansConfig

      for (Path root : paths) {
        configureRoot(root);
      }

      for (int i = 0; i < _pendingBeans.size(); i++) {
        BeansConfig config = _pendingBeans.get(i);

        ArrayList<Class<?>> deployList = config.getDeployList();

        if (deployList != null && deployList.size() > 0) {
          _manager.setDeploymentTypes(deployList);
        }
      }
View Full Code Here

Examples of com.caucho.config.cfg.BeansConfig

    throws IOException
  {
    if (beansPath.canRead() && beansPath.getLength() > 0) {
      // ioc/0041 - tck allows empty beans.xml
     
      BeansConfig beans = new BeansConfig(_manager, beansPath);

      beansPath.setUserPath(beansPath.getURL());

      new Config().configure(beans, beansPath, SCHEMA);
View Full Code Here

Examples of com.caucho.config.cfg.BeansConfig

        configurePath(xml);
      }
     

      for (int i = 0; i < _pendingBeans.size(); i++) {
        BeansConfig config = _pendingBeans.get(i);

        ArrayList<Class<?>> deployList = config.getAlternativesList();

        if (deployList != null && deployList.size() > 0) {
          _cdiManager.setDeploymentTypes(deployList);
        }
      }
View Full Code Here

Examples of com.caucho.config.cfg.BeansConfig

  private void configurePath(Path beansPath) throws IOException
  {
    if (beansPath.canRead() && beansPath.getLength() > 0) {
      // ioc/0041 - tck allows empty beans.xml
     
      BeansConfig beans = new BeansConfig(_cdiManager, beansPath);

      beansPath.setUserPath(beansPath.getURL());
      new Config().configure(beans, beansPath, SCHEMA);

      _pendingBeans.add(beans);
View Full Code Here

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

    project.delete(true, null);
  }

  @Test
  public void testBasicConfigBeans() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "basic-bean-config.xml", IBeansConfig.Type.MANUAL);
   
    Set<IBean> beans = BeansModelUtils.getBeans(config);
    assertEquals(1, beans.size());

    IBean bean = beans.iterator().next();
    assertEquals("simpleBean", bean.getElementName());
   
    IModelElement[] children = config.getElementChildren();
    assertEquals(1, children.length);
  }
View Full Code Here

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

    assertEquals(1, children.length);
  }

  @Test
  public void testAdvancedConfigBeans() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "advanced-bean-config.xml", IBeansConfig.Type.MANUAL);
   
    Set<IBean> beans = BeansModelUtils.getBeans(config);
    assertEquals(2, beans.size());

    assertNotNull(BeansModelUtils.getBean("simpleBean", config));
View Full Code Here

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

    assertEquals("org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator", aspectjBean.getClassName());
  }

  @Test
  public void testBasicComponentScanning() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "basic-component-scanning.xml", IBeansConfig.Type.MANUAL);
   
    IBean bean = BeansModelUtils.getBean("simpleScannedBean", config);
    assertEquals("simpleScannedBean", bean.getElementName());
  }
View Full Code Here

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

    assertEquals("simpleScannedBean", bean.getElementName());
  }

  @Test
  public void testComponentScanningWithEnableAnnotations() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "advanced-component-scanning.xml", IBeansConfig.Type.MANUAL);
   
    IBean simpleBean = BeansModelUtils.getBean("simpleScannedBean", config);
    assertEquals("simpleScannedBean", simpleBean.getElementName());

    IBean bean = BeansModelUtils.getBean("advancedConfigurationClass", config);
View Full Code Here

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

    assertEquals("org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator", aspectjBean.getClassName());
  }

  @Test
  public void testComponentScanningWithProfile() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "profile-component-scanning.xml", IBeansConfig.Type.MANUAL);
   
    IBean simpleBean = BeansModelUtils.getBean("simpleScannedBean", config);
    assertEquals("simpleScannedBean", simpleBean.getElementName());

    IBean configClassBean = BeansModelUtils.getBean("profileConfigurationClass", config);
View Full Code Here

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

    project.delete(true, null);
  }

  @Test
  public void testResourceInjection() throws Exception {
    BeansConfig config = new BeansConfig(beansProject, "src/org/springframework/context/annotation/testResourceInjection-context.xml", IBeansConfig.Type.MANUAL);

    Map<String, Integer[]> allowedRefs = new HashMap<String, Integer[]>();
    allowedRefs.put("testBean", new Integer[] { 70 });
    allowedRefs.put("testBean2", new Integer[] { 110 });
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.