Examples of createInject()


Examples of org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder.createInject()

      }
      String beanName = unit.getName() + "_JBossValidationServices";
      BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(beanName, "org.jboss.weld.integration.validation.JBossValidationServices");
      unit.addAttachment(beanName + "_" + BeanMetaData.class.getSimpleName(), builder.getBeanMetaData());
      builder.addConstructorParameter(DeployersUtils.JAVAX_VALIDATION_VALIDATOR_FACTORY, validatorFactory);
      return builder.createInject(beanName);
   }

   protected boolean isValidationFactoryRequired(DeploymentUnit deploymentUnit)
   {
      //TODO: define more strict criteria for determining whether the presence of a validation factory is required (e.g. JSF, JPA deployments)
View Full Code Here

Examples of org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder.createInject()

         //builder.addConstructorParameter(JBossClientMetaData.class.getName(), xml);
         builder.addConstructorParameter(Class.class.getName(), mainClassName);
         builder.addConstructorParameter(String.class.getName(), applicationClientName);
         builder.addConstructorParameter(Properties.class.getName(), jndiEnv);
         // Use vfs class loader as the ClientContainer class loader
         ValueMetaData classLoader = builder.createInject(classLoaderName);
         builder.setClassLoader(classLoader);
         BeanMetaData clientContainerMD = builder.getBeanMetaData();

         AbstractKernelDeployment deployment = new AbstractKernelDeployment();
         deployment.setName(factory.getName() + ":" + factory.getVersion());
View Full Code Here

Examples of org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder.createInject()

       
        BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder(name, HornetQCoreDeployment.class.getName());

        builder.addPropertyMetaData("name", name);

        builder.addPropertyMetaData("server", builder.createInject("HornetQServer"));
       
        builder.addPropertyMetaData("config", config);

        BeanMetaData bean = builder.getBeanMetaData();
View Full Code Here

Examples of org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder.createInject()

   {
      BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder(name, configClass);

      builder.addPropertyMetaData("name", name);

      builder.addPropertyMetaData("jmsServer", builder.createInject("JMSServerManager"));
     
      builder.addPropertyMetaData("config", config);

      // runtime control registry
      builder.addPropertyMetaData("kernel", builder.createInject(KernelConstants.KERNEL_NAME));
View Full Code Here

Examples of org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder.createInject()

      builder.addPropertyMetaData("jmsServer", builder.createInject("JMSServerManager"));
     
      builder.addPropertyMetaData("config", config);

      // runtime control registry
      builder.addPropertyMetaData("kernel", builder.createInject(KernelConstants.KERNEL_NAME));
     
      builder.addPropertyMetaData("mbeanServer", builder.createInject("MBeanServer"));
     
      for (Map.Entry<String, Object> entry : unit.getAttachments().entrySet())
      {
View Full Code Here

Examples of org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder.createInject()

      builder.addPropertyMetaData("config", config);

      // runtime control registry
      builder.addPropertyMetaData("kernel", builder.createInject(KernelConstants.KERNEL_NAME));
     
      builder.addPropertyMetaData("mbeanServer", builder.createInject("MBeanServer"));
     
      for (Map.Entry<String, Object> entry : unit.getAttachments().entrySet())
      {
         if (entry.getValue() instanceof BeanMetaData)
         {
View Full Code Here

Examples of org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder.createInject()

   {
      String ejbName = beanMetaData.getEjbName();
      String ejbBeanName = identifier.identifyEJB(unit, ejbName);
      String name = resolver.resolve(unit, ejbName);
      BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder(name, EndpointImpl.class.getName());
      builder.addPropertyMetaData("container", builder.createInject(ejbBeanName));
      BeanMetaData bmd = builder.getBeanMetaData();
      log.debug("Deploy " + bmd);
      unit.addAttachment(BeanMetaData.class + ":" + name, bmd);
   }
  
View Full Code Here

Examples of org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder.createInject()

   {
      String ejbName = beanMetaData.getEjbName();
      String ejbBeanName = identifier.identifyEJB(unit, ejbName);
      String name = resolver.resolve(unit, ejbName);
      BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder(name, EndpointImpl.class.getName());
      builder.addPropertyMetaData("container", builder.createInject(ejbBeanName));
      BeanMetaData bmd = builder.getBeanMetaData();
      log.info("Deploy " + bmd);
      unit.addAttachment(BeanMetaData.class + ":" + name, bmd);
   }
  
View Full Code Here

Examples of org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder.createInject()

        final NamedBeanMetaData executorBean = pipeConnectorMetaData.getExecutorBean();
        final NamedBeanMetaData handlerFactoryBean = pipeConnectorMetaData.getHandlerFactoryBean();

        final BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(name, Closeable.class.getName());
        if (provider != null) {
            builder.setFactory(builder.createInject(provider));
        } else {
            // todo: createInject auto-wired based on class
            builder.setFactory(builder.createInject(DEFAULT_PROVIDER_BEAN_NAME));
        }
        builder.setFactoryMethod(createMethodName);
View Full Code Here

Examples of org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder.createInject()

        final BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(name, Closeable.class.getName());
        if (provider != null) {
            builder.setFactory(builder.createInject(provider));
        } else {
            // todo: createInject auto-wired based on class
            builder.setFactory(builder.createInject(DEFAULT_PROVIDER_BEAN_NAME));
        }
        builder.setFactoryMethod(createMethodName);
        if (executorBean != null) {
            builder.addConstructorParameter(Executor.class.getName(), builder.createInject(executorBean.getName()));
        }
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.