Examples of ProducerImpl


Examples of com.alibaba.ons.api.impl.rocketmq.ProducerImpl


public class ONSFactoryImpl implements ONSFactoryAPI {
    @Override
    public Producer createProducer(final Properties properties) {
        ProducerImpl producer = new ProducerImpl(properties);
        return producer;
    }
View Full Code Here

Examples of com.aliyun.openservices.ons.api.impl.rocketmq.ProducerImpl


public class ONSFactoryImpl implements ONSFactoryAPI {
    @Override
    public Producer createProducer(final Properties properties) {
        ProducerImpl producer = new ProducerImpl(properties);
        return producer;
    }
View Full Code Here

Examples of org.apache.wsrp4j.consumer.driver.ProducerImpl

        if (producer == null) {
            // Create producer and register it
            RegistrationData regData = new RegistrationData();
            regData.setConsumerName("uPortal WSRP Consumer");
            regData.setConsumerAgent("uPortal WSRP Consumer");
            producer = new ProducerImpl(producerID, markupUrl, serviceDescUrl, regUrl, mgmtUrl, regData);
            producerRegistry.addProducer(producer);
        }
        //System.out.println("returning producer=" + producer.toString());
        return producer;
View Full Code Here

Examples of org.apache.wsrp4j.consumer.driver.ProducerImpl

     * @return Returns true if the producer could be added.
     */
    public boolean addProducer(ProducerDescription desc) {
        this.checkInitialized();
        try {
            final Producer producer = new ProducerImpl(desc.getId(),
                                        desc.getMarkupInterfaceUrl(),
                                        desc.getServiceDescriptionInterfaceUrl(),
                                        desc.getRegistrationInterfaceUrl(),
                                        desc.getPortletManagementInterfaceUrl(),
                                        desc.getRegistrationData());
            producer.setName(desc.getName());
            producer.setDescription(desc.getDescription());
            this.addProducer(producer);
            return true;
        } catch (WSRPException we) {
            this.logger.error("Unable to add wsrp producer: " + desc.getId()
                            + " - Continuing without configured producer.", we);
View Full Code Here

Examples of org.apache.wsrp4j.consumer.driver.ProducerImpl

     * @return Returns true if the producer could be added.
     */
    public boolean addProducer(ProducerDescription desc) {
        this.checkInitialized();
        try {
            final Producer producer = new ProducerImpl(desc.getId(),
                                        desc.getMarkupInterfaceUrl(),
                                        desc.getServiceDescriptionInterfaceUrl(),
                                        desc.getRegistrationInterfaceUrl(),
                                        desc.getPortletManagementInterfaceUrl(),
                                        desc.getRegistrationData());
            producer.setName(desc.getName());
            producer.setDescription(desc.getDescription());
            this.addProducer(producer);
            return true;
        } catch (WSRPException we) {
            this.logger.error("Unable to add wsrp producer: " + desc.getId()
                            + " - Continuing without configured producer.", we);
View Full Code Here

Examples of org.apache.wsrp4j.consumer.driver.ProducerImpl

     * @return Returns true if the producer could be added.
     */
    public boolean addProducer(ProducerDescription desc) {
        this.checkInitialized();
        try {
            final Producer producer = new ProducerImpl(desc.getId(),
                                        desc.getMarkupInterfaceUrl(),
                                        desc.getServiceDescriptionInterfaceUrl(),
                                        desc.getRegistrationInterfaceUrl(),
                                        desc.getPortletManagementInterfaceUrl(),
                                        desc.getRegistrationData());
            producer.setName(desc.getName());
            producer.setDescription(desc.getDescription());
            this.addProducer(producer);
            return true;
        } catch (WSRPException we) {
            this.logger.error("Unable to add wsrp producer: " + desc.getId()
                            + " - Continuing without configured producer.", we);
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

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.