Package org.jboss.metadata.ejb.spec

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


      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


         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());
         configProps.add(acp);
      }
      metaData.setActivationConfig(config);
      return metaData;
   }
View Full Code Here

   {
      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

   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);
         }
      }
      return null;
View Full Code Here

                    //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

    private Properties getActivationConfigProperties(final ActivationConfigMetaData activationConfig) {
        final Properties activationConfigProps = new Properties();
        if (activationConfig == null || activationConfig.getActivationConfigProperties() == null) {
            return activationConfigProps;
        }
        final ActivationConfigPropertiesMetaData activationConfigPropertiesMetaData = activationConfig.getActivationConfigProperties();
        for (ActivationConfigPropertyMetaData activationConfigProp : activationConfigPropertiesMetaData) {
            if (activationConfigProp == null) {
                continue;
            }
            final String propName = activationConfigProp.getActivationConfigPropertyName();
View Full Code Here

         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());
         configProps.add(acp);
      }
      metaData.setActivationConfig(config);
      return metaData;
   }
View Full Code Here

      else
         metaData.setEjbName(beanClass.getSimpleName());
     
      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());
         configProps.add(acp);
      }
      metaData.setActivationConfig(config);
     
      return metaData;
   }
View Full Code Here

   {
      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

   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);
         }
      }
      return null;
View Full Code Here

TOP

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

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.