Examples of ProducerImpl


Examples of org.jboss.ejb3.annotation.impl.ProducerImpl

/* 106 */         if ((producers[i].producer() != null) && (producers[i].producer().equals(producer))) {
/* 107 */           p = producers[i];
/*     */         }
/*     */       }
/*     */     }
/* 111 */     this.pImpl = new ProducerImpl(p);
/* 112 */     this.jndiName = producer.getName();
/*     */   }
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.ProducerImpl

         if(producers != null)
         {
            for(ProducerMetaData producer : producers)
            {
               ProducerImpl annotation = new ProducerImpl(di.getClassLoader()
                     .loadClass(producer.getClassName()));
               if (producer.getConnectionFactory() != null)
                  annotation.setConnectionFactory(producer.getConnectionFactory());
               producersAnnotation.addProducer(annotation);
            }
         }

         if(localProducers != null)
         {
            for(ProducerMetaData producer : localProducers)
            {
               ProducerImpl annotation = new ProducerImpl(di.getClassLoader()
                     .loadClass(producer.getClassName()));
               if (producer.getConnectionFactory() != null)
                  annotation.setConnectionFactory(producer.getConnectionFactory());
               producersAnnotation.addProducer(annotation);
            }
         }
        
         addClassAnnotation(container, Producers.class, producersAnnotation);
      }

      MethodAttributesMetaData currentMessage = consumer
            .getCurrentMessage();
      if (currentMessage != null)
      {
         CurrentMessageImpl annotation = new CurrentMessageImpl();
         for(MethodAttributeMetaData method : currentMessage)
         {
            addAnnotations(CurrentMessage.class, annotation, container, method);
         }
      }

      List<MessagePropertiesMetaData> propertiesList = consumer.getMessageProperties();
      if (propertiesList != null)
      {
         for(MessagePropertiesMetaData properties : propertiesList)
         {
            MessagePropertiesImpl annotation = new MessagePropertiesImpl();
  
            String delivery = properties.getDelivery();
            if (delivery != null && delivery.equals("Persistent"))
               annotation.setDelivery(DeliveryMode.PERSISTENT);
            else
               annotation.setDelivery(DeliveryMode.NON_PERSISTENT);
  
            Integer priority = properties.getPriority();
            if (priority != null)
               annotation.setDelivery(DeliveryMode.PERSISTENT);
  
            String interfac = properties.getClassName();
            if (interfac != null)
            {
               Class<?> clazz = di.getClassLoader().loadClass(interfac);
               annotation.setInterface(clazz);
            }
  
            MethodAttributeMetaData method = properties.getMethod();
            addAnnotations(MessageProperties.class, annotation, container, method);
         }
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.ProducerImpl

         if(producers != null)
         {
            for(ProducerMetaData producer : producers)
            {
               ProducerImpl annotation = new ProducerImpl(di.getClassLoader()
                     .loadClass(producer.getClassName()));
               if (producer.getConnectionFactory() != null)
                  annotation.setConnectionFactory(producer.getConnectionFactory());
               producersAnnotation.addProducer(annotation);
            }
         }

         if(localProducers != null)
         {
            for(ProducerMetaData producer : localProducers)
            {
               ProducerImpl annotation = new ProducerImpl(di.getClassLoader()
                     .loadClass(producer.getClassName()));
               if (producer.getConnectionFactory() != null)
                  annotation.setConnectionFactory(producer.getConnectionFactory());
               producersAnnotation.addProducer(annotation);
            }
         }
        
         addClassAnnotation(container, Producers.class, producersAnnotation);
      }

      MethodAttributesMetaData currentMessage = consumer
            .getCurrentMessage();
      if (currentMessage != null)
      {
         CurrentMessageImpl annotation = new CurrentMessageImpl();
         for(MethodAttributeMetaData method : currentMessage)
         {
            addAnnotations(CurrentMessage.class, annotation, container, method);
         }
      }

      List<MessagePropertiesMetaData> propertiesList = consumer.getMessageProperties();
      if (propertiesList != null)
      {
         for(MessagePropertiesMetaData properties : propertiesList)
         {
            MessagePropertiesImpl annotation = new MessagePropertiesImpl();
  
            String delivery = properties.getDelivery();
            if (delivery != null && delivery.equals("Persistent"))
               annotation.setDelivery(DeliveryMode.PERSISTENT);
            else
               annotation.setDelivery(DeliveryMode.NON_PERSISTENT);
  
            Integer priority = properties.getPriority();
            if (priority != null)
               annotation.setDelivery(DeliveryMode.PERSISTENT);
  
            String interfac = properties.getClassName();
            if (interfac != null)
            {
               Class<?> clazz = di.getClassLoader().loadClass(interfac);
               annotation.setInterface(clazz);
            }
  
            MethodAttributeMetaData method = properties.getMethod();
            addAnnotations(MessageProperties.class, annotation, container, method);
         }
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.