Package org.jboss.metadata.ejb.spec

Examples of org.jboss.metadata.ejb.spec.ActivationConfigMetaData


         throws DeploymentException
   {
      String destinationName = null;
      String destinationType = null;

      ActivationConfigMetaData activationConfig = mdb.getActivationConfig();
      if (activationConfig != null)
      {
         ActivationConfigPropertiesMetaData properties = activationConfig
               .getActivationConfigProperties();
         if (properties != null)
         {
            destinationName = getActivationConfigProperty(properties,
                  "destination");
View Full Code Here


      if(joverride != null && joverride.messageDestinationLink != null)
         messageDestinationLink = joverride.messageDestinationLink;
      else if(soriginal != null && soriginal.getMessageDestinationLink() != null)
         messageDestinationLink = soriginal.getMessageDestinationLink();
      // Fixup the activation config
      ActivationConfigMetaData jbossActivationConfig = null;
      if (joverride != null && joverride.getActivationConfig() != null)
         jbossActivationConfig = joverride.getActivationConfig();
      ActivationConfigMetaData originalActivationConfig = null;
      if(soriginal != null)
         originalActivationConfig = soriginal.getActivationConfig();
      if(jbossActivationConfig != null || originalActivationConfig != null)
      {
         if(activationConfig == null)
            activationConfig = new ActivationConfigMetaData();
         activationConfig.merge(jbossActivationConfig, originalActivationConfig);
      }
      // aroundInvokes
      if(joverride != null && joverride.aroundInvokes != null)
         aroundInvokes = joverride.aroundInvokes;
View Full Code Here

      if(joverride != null && joverride.messageDestinationLink != null)
         messageDestinationLink = joverride.messageDestinationLink;
      else if(soriginal != null && soriginal.getMessageDestinationLink() != null)
         messageDestinationLink = soriginal.getMessageDestinationLink();
      // Fixup the activation config
      ActivationConfigMetaData jbossActivationConfig = null;
      if (joverride != null && joverride.getActivationConfig() != null)
         jbossActivationConfig = joverride.getActivationConfig();
      ActivationConfigMetaData originalActivationConfig = null;
      if(soriginal != null)
         originalActivationConfig = soriginal.getActivationConfig();
      if(jbossActivationConfig != null || originalActivationConfig != null)
      {
         if(activationConfig == null)
            activationConfig = new ActivationConfigMetaData();
         activationConfig.merge(jbossActivationConfig, originalActivationConfig);
      }
      // aroundInvokes
      if(joverride != null && joverride.aroundInvokes != null)
         aroundInvokes = joverride.aroundInvokes;
View Full Code Here

      if(annotation.mappedName().length() > 0)
         metaData.setMappedName(annotation.mappedName());
      if(annotation.messageListenerInterface() != Object.class)
         metaData.setMessagingType(annotation.messageListenerInterface().getName());
      ActivationConfigProperty[] props = annotation.activationConfig();
      ActivationConfigMetaData config = new ActivationConfigMetaData();
      ActivationConfigPropertiesMetaData configProps = new ActivationConfigPropertiesMetaData();
      config.setActivationConfigProperties(configProps);
      for(ActivationConfigProperty prop : props)
      {
         ActivationConfigPropertyMetaData acp = new ActivationConfigPropertyMetaData();
         acp.setActivationConfigPropertyName(prop.propertyName());
         acp.setValue(prop.propertyValue());
View Full Code Here

      if(joverride != null && joverride.messageDestinationLink != null)
         messageDestinationLink = joverride.messageDestinationLink;
      else if(soriginal != null && soriginal.getMessageDestinationLink() != null)
         messageDestinationLink = soriginal.getMessageDestinationLink();
      // Fixup the activation config
      ActivationConfigMetaData jbossActivationConfig = null;
      if (joverride != null && joverride.getActivationConfig() != null)
         jbossActivationConfig = joverride.getActivationConfig();
      ActivationConfigMetaData originalActivationConfig = null;
      if(soriginal != null)
         originalActivationConfig = soriginal.getActivationConfig();
      if(jbossActivationConfig != null || originalActivationConfig != null)
      {
         if(activationConfig == null)
            activationConfig = new ActivationConfigMetaData();
         activationConfig.merge(jbossActivationConfig, originalActivationConfig);
      }
      // aroundInvokes
      if(joverride != null && joverride.aroundInvokes != null)
         aroundInvokes = joverride.aroundInvokes;
View Full Code Here

    * @return a collection of ActivationConfigPropertyMetaData elements
    */
   public HashMap<String, ActivationConfigPropertyMetaData> getActivationConfigProperties()
   {
      HashMap<String, ActivationConfigPropertyMetaData> result = new LinkedHashMap<String, ActivationConfigPropertyMetaData>();
      ActivationConfigMetaData config = getDelegate().getActivationConfig();
      if (config != null)
      {
         ActivationConfigPropertiesMetaData properties = config.getActivationConfigProperties();
         if (properties != null)
         {
            for (org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData property : properties)
               result.put(property.getName(), new ActivationConfigPropertyMetaData(property));
         }
View Full Code Here

    * @param name the name of the property
    * @return the ActivationConfigPropertyMetaData or null if not found
    */
   public ActivationConfigPropertyMetaData getActivationConfigProperty(String name)
   {
      ActivationConfigMetaData config = getDelegate().getActivationConfig();
      if (config != null)
      {
         ActivationConfigPropertiesMetaData properties = config.getActivationConfigProperties();
         if (properties != null)
         {
            org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData result = properties.get(name);
            if (result != null)
               return new ActivationConfigPropertyMetaData(result);
View Full Code Here

                     .getMdbPassword()));

            }
         }

         ActivationConfigMetaData activationConfig = mdb.getActivationConfig();
         if (activationConfig != null && activationConfig.getActivationConfigProperties() != null)
         {
            for (ActivationConfigPropertyMetaData property : activationConfig.getActivationConfigProperties())
            {
               properties.add(new ActivationConfigPropertyImpl(property
                     .getName(), property.getValue()));
            }
         }
View Full Code Here

      }
   }

   private void addDefaultActivationConfig(MDB container, JBossMessageDrivenBeanMetaData mdb)
   {
      ActivationConfigMetaData defaultActivationConfig = mdb.getDefaultActivationConfig();
      if (defaultActivationConfig != null)
      {
         DefaultActivationSpecsImpl activationAnnotation = new DefaultActivationSpecsImpl();
         for (ActivationConfigPropertyMetaData property : defaultActivationConfig.getActivationConfigProperties())
         {
            activationAnnotation.addActivationConfigProperty(new ActivationConfigPropertyImpl(property
                  .getName(), property.getValue()));
         }
View Full Code Here

                if (beanMetaData instanceof MessageDrivenBeanMetaData) {
                    //It may actually be GenericBeanMetadata instance
                    final MessageDrivenBeanMetaData mdb = (MessageDrivenBeanMetaData) beanMetaData;
                    messagingType = mdb.getMessagingType();
                    final ActivationConfigMetaData activationConfigMetaData = mdb.getActivationConfig();
                    if (activationConfigMetaData != null) {
                        final ActivationConfigPropertiesMetaData propertiesMetaData = activationConfigMetaData.getActivationConfigProperties();
                        if (propertiesMetaData != null) {
                            for (final ActivationConfigPropertyMetaData propertyMetaData : propertiesMetaData) {
                                activationConfigProperties.put(propertyMetaData.getKey(), propertyMetaData.getValue());
                            }
                        }
                    }
                } else if (beanMetaData instanceof JBossGenericBeanMetaData) {
                    //TODO: fix the hierarchy so this is not needed
                    final JBossGenericBeanMetaData mdb = (JBossGenericBeanMetaData) beanMetaData;
                    messagingType = mdb.getMessagingType();
                    final ActivationConfigMetaData activationConfigMetaData = mdb.getActivationConfig();
                    if (activationConfigMetaData != null) {
                        final ActivationConfigPropertiesMetaData propertiesMetaData = activationConfigMetaData.getActivationConfigProperties();
                        if (propertiesMetaData != null) {
                            for (final ActivationConfigPropertyMetaData propertyMetaData : propertiesMetaData) {
                                activationConfigProperties.put(propertyMetaData.getKey(), propertyMetaData.getValue());
                            }
                        }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.ejb.spec.ActivationConfigMetaData

Copyright © 2018 www.massapicom. 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.