Examples of addBean()


Examples of org.jboss.weld.manager.BeanManagerImpl.addBean()

    public void testInstanceProcessedByCurrentActivity() {
        Context dummyContext = new DummyContext();
        beanManager.addContext(dummyContext);
        Assert.assertEquals(1, beanManager.getBeans(Cow.class).size());
        BeanManagerImpl childActivity = beanManager.createActivity();
        childActivity.addBean(new Daisy(childActivity));
        childActivity.setCurrent(dummyContext.getScope());
        Assert.assertNotNull(Utils.getReference(beanManager, Field.class).get());
    }

}
View Full Code Here

Examples of org.milyn.javabean.context.BeanContext.addBean()

                    FilterSource.setSource(executionContext, source);
                    FilterResult.setResults(executionContext, results);

                    // Add pre installed beans + global BeanContext lifecycle observers...
                    BeanContext beanContext = executionContext.getBeanContext();
                    beanContext.addBean(Time.BEAN_ID, new Time());
                    beanContext.addBean(UniqueID.BEAN_ID, new UniqueID());
                    for(BeanContextLifecycleObserver observer : context.getBeanContextLifecycleObservers()) {
                        beanContext.addObserver(observer);
                    }
View Full Code Here

Examples of org.neo4j.webadmin.domain.JmxDomainRepresentation.addBean()

        for ( Object objName : server.queryNames( null, null ) )
        {
            if ( objName.toString().startsWith( domainName ) )
            {
                domain.addBean( (ObjectName) objName );
            }
        }

        String entity = JsonRenderers.DEFAULT.render( domain );
View Full Code Here

Examples of org.open.java.flow.WorkFlowManager.addBean()

        .getResourceAsStream("org/open/java/flow/dummy/workflow_1.xml");

    MockProcess mockProcess = new MockProcess();

    WorkFlowManager manager = new WorkFlowManager(in);
    manager.addBean("mockProcess", mockProcess);
    manager.executeAllFlows();
  }

}
View Full Code Here

Examples of org.pentaho.platform.plugin.services.pluginmgr.PlatformPlugin.addBean()

    public List<IPlatformPlugin> getPlugins( IPentahoSession session ) throws PlatformPluginRegistrationException {
      PlatformPlugin p = new PlatformPlugin();
      // need to set source description - classloader needs it
      p.setId( "good-plugin1" );
      p.setSourceDescription( "good-plugin1" );
      p.addBean( new PluginBeanDefinition( "TestMockComponent",
        "org.pentaho.test.platform.engine.core.MockComponent" ) );
      p.addBean( new PluginBeanDefinition( "TestPojo", "java.lang.String" ) );
      p.addBean( new PluginBeanDefinition( "TestClassNotFoundComponent", "org.pentaho.test.NotThere" ) );
      return Arrays.asList( (IPlatformPlugin) p );
    }
View Full Code Here

Examples of org.springframework.beans.factory.support.StaticListableBeanFactory.addBean()

    this.listableBeanFactory = child;
  }

  public void testHierarchicalCountBeansWithNonHierarchicalFactory() {
    StaticListableBeanFactory lbf = new StaticListableBeanFactory();
    lbf.addBean("t1", new TestBean());
    lbf.addBean("t2", new TestBean());
    assertTrue(BeanFactoryUtils.countBeansIncludingAncestors(lbf) == 2);
  }

  /**
 
View Full Code Here

Examples of rocket.beans.rebind.loadeagersingletons.GetEagerSingletonBeanNames.addBean()

      }

      // only singletons can be singletons.
      final boolean eager = bean.isEagerLoaded();
      if (eager) {
        body.addBean(bean.getId());
        eagerSingletonBeanCount++;

        context.debug(bean.toString());
      } else {
        lazySingletonBeanCount++;
View Full Code Here

Examples of rocket.beans.rebind.registerfactorybeans.RegisterFactoryBeansTemplatedFile.addBean()

    final Iterator<Bean> beansIterator = this.getBeans().values().iterator();

    while (beansIterator.hasNext()) {
      final Bean bean = beansIterator.next();
      body.addBean(bean);

      context.debug(bean.getId());
    }
    context.unbranch();
  }
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.