Examples of createBean()


Examples of com.atlassian.plugin.module.ContainerAccessor.createBean()

   * @return
   *     module
   */
  public OnTestSamplingRunnable getModule() {
    ContainerAccessor containerAccessor = ((ContainerManagedPlugin) getPlugin()).getContainerAccessor();
    return containerAccessor.createBean(getModuleClass());
  }
}
View Full Code Here

Examples of com.caucho.ejb.manager.EjbContainer.createBean()

            || annotatedType.isAnnotationPresent(Stateless.class)
            || annotatedType.isAnnotationPresent(Singleton.class)
            || annotatedType.isAnnotationPresent(MessageDriven.class)
            || annotatedType.isAnnotationPresent(JmsMessageListener.class))) {
      EjbContainer ejbContainer = EjbContainer.create();
      ejbContainer.createBean(annotatedType, null);
      event.veto();
    }
  }

  public <T> void processBean(@Observes ProcessBeanImpl<T> event)
View Full Code Here

Examples of com.caucho.ejb.manager.EjbManager.createBean()

            || annotatedType.isAnnotationPresent(Singleton.class)
            || annotatedType.isAnnotationPresent(MessageDriven.class)
            || annotatedType.isAnnotationPresent(JmsMessageListener.class)
            || ejbContainer != null && ejbContainer.isConfiguredBean(annotatedType.getJavaClass()))) {
      if (ejbContainer != null) {
        ejbContainer.createBean(annotatedType, null);
        event.veto();
      }
    }
   
    /*
 
View Full Code Here

Examples of org.dozer.BeanFactory.createBean()

        factory = (BeanFactory) ReflectionUtils.newInstance(factoryClass);
        // put the created factory in our factory map
        factoryCache.put(factoryName, factory);
      }

      Object result = factory.createBean(directive.getSrcObject(), directive.getSrcClass(), beanId);

      log.debug("Bean instance created with custom factory -->\n  Bean Type: {}\n  Factory Name: {}",
              result.getClass().getName(), factoryName);

      if (!classToCreate.isAssignableFrom(result.getClass())) {
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.factory.GenericBeanFactory.createBean()

     
      SimpleBeanWithLifecycle bean1 = (SimpleBeanWithLifecycle) context1.getTarget();
      assertNotNull(bean1);

      GenericBeanFactory factory = (GenericBeanFactory) context2.getTarget();
      SimpleBeanWithLifecycle bean2 = (SimpleBeanWithLifecycle) factory.createBean();
      assertNotNull(bean2);
     
      assertEquals(1, bean1.createOrder);
      assertEquals(2, bean1.startOrder);
      assertEquals(3, bean2.createOrder);
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.factory.GenericBeanFactory.createBean()

     
      SimpleBeanWithLifecycle bean1 = (SimpleBeanWithLifecycle) context1.getTarget();
      assertNotNull(bean1);
     
      GenericBeanFactory factory = (GenericBeanFactory) context2.getTarget();
      SimpleBeanWithLifecycle bean2 = (SimpleBeanWithLifecycle) factory.createBean();
      assertNotNull(bean2);
     
      assertEquals(1, bean1.createOrder);
      assertEquals(2, bean1.startOrder);
      assertEquals(3, bean2.createOrder);
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.factory.GenericBeanFactory.createBean()

     
      SimpleBeanWithLifecycle bean1 = (SimpleBeanWithLifecycle) context1.getTarget();
      assertNotNull(bean1);
     
      GenericBeanFactory factory = (GenericBeanFactory) context2.getTarget();
      SimpleBeanWithLifecycle bean2 = (SimpleBeanWithLifecycle) factory.createBean();
      assertNotNull(bean2);
     
      assertEquals(1, bean1.createOrder);
      assertEquals(2, bean1.startOrder);
      assertEquals(3, bean2.createOrder);
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.factory.GenericBeanFactory.createBean()

      assertEquals(-1, bean1.destroyOrder);

      context2 = assertInstall(1, "Name2");
     
      factory = (GenericBeanFactory) context2.getTarget();
      bean2 = (SimpleBeanWithLifecycle) factory.createBean();
      assertNotNull(bean2);
      assertContext("Name1", ControllerState.INSTALLED);
     
      assertEquals(9, bean2.createOrder);
      assertEquals(10, bean2.startOrder);
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.factory.GenericBeanFactory.createBean()

     
      ControllerContext context1 = assertInstall(0, "Name1");     
      ControllerContext context2 = assertInstall(1, "Name2");     
     
      GenericBeanFactory factory1 = (GenericBeanFactory) context1.getTarget();
      SimpleBean bean1 = (SimpleBean) factory1.createBean();
      assertNotNull(bean1);
      assertEquals("String1", bean1.getString());
     
      GenericBeanFactory factory2 = (GenericBeanFactory) context2.getTarget();
      SimpleBean bean2 = (SimpleBean) factory2.createBean();
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.factory.GenericBeanFactory.createBean()

      SimpleBean bean1 = (SimpleBean) factory1.createBean();
      assertNotNull(bean1);
      assertEquals("String1", bean1.getString());
     
      GenericBeanFactory factory2 = (GenericBeanFactory) context2.getTarget();
      SimpleBean bean2 = (SimpleBean) factory2.createBean();
      assertNotNull(bean2);
      assertEquals("String2", bean2.getString());
   }

   public void demandDependencyCorrectOrder() throws Throwable
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.