Package org.jboss.errai.ioc.client.container

Examples of org.jboss.errai.ioc.client.container.IOCBeanDef


      return Collections.emptyList().iterator();
    }

    @Override
    public Object get() {
      final IOCBeanDef bean = IOC.getBeanManager().lookupBean(type, qualifiers);
      if (bean == null) {
        return null;
      }
      else {
        return bean.getInstance();
      }
    }
View Full Code Here


        String beanName =  displayerType + "_editor";
        Collection<IOCBeanDef> beans = beanManager.lookupBeans(beanName);
        if (beans == null || beans.isEmpty()) throw new RuntimeException(displayerSettings.getType().toString().toLowerCase() + " settings editor not found.");
        if (beans.size() > 1) throw new RuntimeException("Multiple settings editors implementations found for: " + displayerType);

        IOCBeanDef beanDef = beans.iterator().next();
        DisplayerSettingsEditor settingsEditor = (DisplayerSettingsEditor ) beanDef.getInstance();
        settingsEditor.setDisplayerSettings(displayerSettings);
        return settingsEditor;
    }
View Full Code Here

      return Collections.emptyList().iterator();
    }

    @Override
    public Object get() {
      final IOCBeanDef bean = IOC.getBeanManager().lookupBean(type, qualifiers);
      if (bean == null) {
        return null;
      }
      else {
        return bean.getInstance();
      }
    }
View Full Code Here

      return Collections.emptyList().iterator();
    }

    @Override
    public Object get() {
      IOCBeanDef bean = IOC.getBeanManager().lookupBean(type, qualifiers);
      if (bean == null) {
        return null;
      }
      else {
        return bean.getInstance();
      }
    }
View Full Code Here

        String beanName = renderer + "_renderer";
        Collection<IOCBeanDef> beans = beanManager.lookupBeans(beanName);
        if (beans == null || beans.isEmpty()) throw new RuntimeException(renderer + " renderer not found.");
        if (beans.size() > 1) throw new RuntimeException("Multiple renderer implementations found for: " + renderer);

        IOCBeanDef beanDef = beans.iterator().next();
        return (RendererLibrary) beanDef.getInstance();
    }
View Full Code Here

      return Collections.emptyList().iterator();
    }

    @Override
    public Object get() {
      IOCBeanDef bean = IOC.getBeanManager().lookupBean(type, qualifiers);
      if (bean == null) {
        return null;
      }
      else {
        return bean.getInstance();
      }
    }
View Full Code Here

      return Collections.emptyList().iterator();
    }

    @Override
    public Object get() {
      final IOCBeanDef bean = IOC.getBeanManager().lookupBean(type, qualifiers);
      if (bean == null) {
        return null;
      }
      else {
        return bean.getInstance();
      }
    }
View Full Code Here

    public String getIdMock() {
        return idMock;
    }

    public void duplicateActivity() {
        IOCBeanDef duplicateMockDef = mock( IOCDependentBean.class );
        when( duplicateMockDef.getName() ).thenReturn( idMock );
        availableActivities.add( duplicateMockDef );
    }
View Full Code Here

TOP

Related Classes of org.jboss.errai.ioc.client.container.IOCBeanDef

Copyright © 2018 www.massapicom. 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.