Package org.jboss.jca.common.metadata.ra.ra16

Examples of org.jboss.jca.common.metadata.ra.ra16.Path


        final List<ConfigProperty> jmsActivationConfigProps = new ArrayList<ConfigProperty>(JMS_ACTIVATION_CONFIG_PROPERTIES.size());
        for (final String activationConfigProp : JMS_ACTIVATION_CONFIG_PROPERTIES) {
            final ConfigProperty configProp = new ConfigPropertyImpl(EMPTY_LOCL, str(activationConfigProp), str(STRING_TYPE), null, null);
            jmsActivationConfigProps.add(configProp);
        }
        Activationspec16Impl activation = new Activationspec16Impl(str(HQ_ACTIVIATION), destination, jmsActivationConfigProps, null);
        List<MessageListener> messageListeners = Collections.<MessageListener>singletonList(new MessageListenerImpl(str(JMS_MESSAGE_LISTENER), activation, null));
        Messageadapter message = new MessageAdapterImpl(messageListeners, null);

        return new InboundResourceAdapterImpl(message, null);
    }
View Full Code Here


      if (activation.messageListeners() != null)
      {
         messageListeners = new ArrayList<MessageListener>(activation.messageListeners().length);
         for (Class asClass : activation.messageListeners())
         {
            Activationspec16 asMeta = new Activationspec16Impl(new XsdString(annotation.getClassName(), null), null,
                                                               validProperties,
                                                               null);
            MessageListener mlMeta = new MessageListenerImpl(new XsdString(asClass.getName(), null), asMeta, null);
            messageListeners.add(mlMeta);
View Full Code Here

        final List<ConfigProperty> jmsActivationConfigProps = new ArrayList<ConfigProperty>(JMS_ACTIVATION_CONFIG_PROPERTIES.size());
        for (final String activationConfigProp : JMS_ACTIVATION_CONFIG_PROPERTIES) {
            final ConfigProperty configProp = new ConfigPropertyImpl(EMPTY_LOCL, str(activationConfigProp), str(STRING_TYPE), null, null);
            jmsActivationConfigProps.add(configProp);
        }
        Activationspec16Impl activation = new Activationspec16Impl(str(HQ_ACTIVIATION), destination, jmsActivationConfigProps, null);
        List<MessageListener> messageListeners = Collections.<MessageListener>singletonList(new MessageListenerImpl(str(JMS_MESSAGE_LISTENER), activation, null));
        Messageadapter message = new MessageAdapterImpl(messageListeners, null);

        return new InboundResourceAdapterImpl(message, null);
    }
View Full Code Here

      if (activation.messageListeners() != null)
      {
         messageListeners = new ArrayList<MessageListener>(activation.messageListeners().length);
         for (Class asClass : activation.messageListeners())
         {
            Activationspec16 asMeta = new Activationspec16Impl(new XsdString(annotation.getClassName(), null),
                                                               requiredConfigProperties,
                                                               validProperties,
                                                               null);
            MessageListener mlMeta = new MessageListenerImpl(new XsdString(asClass.getName(), null), asMeta, null);
            messageListeners.add(mlMeta);
View Full Code Here

                  configProperty.trimToSize();

                  //building and returning object
                  if (configProperty.size() != 0)
                  {
                     return new Activationspec16Impl(activationspecClass, requiredConfigProperty, configProperty, id);
                  }
                  else
                  {
                     return new Activationspec15Impl(activationspecClass, requiredConfigProperty, id);
                  }
View Full Code Here

      if (activation.messageListeners() != null)
      {
         messageListeners = new ArrayList<MessageListener>(activation.messageListeners().length);
         for (Class asClass : activation.messageListeners())
         {
            Activationspec16 asMeta = new Activationspec16Impl(new XsdString(annotation.getClassName(), null), null,
                                                               validProperties,
                                                               null);
            MessageListener mlMeta = new MessageListenerImpl(new XsdString(asClass.getName(), null), asMeta, null);
            messageListeners.add(mlMeta);
View Full Code Here

                  //building and returning object

                  if (configPropertyIgnore != null || configPropertySupportsDynamicUpdates != null
                        || configPropertyConfidential != null)
                  {
                     return new ConfigProperty16(description, configPropertyName, configPropertyType,
                           configPropertyValue,
                           configPropertyIgnore, configPropertySupportsDynamicUpdates, configPropertyConfidential, id);
                  }
                  else
                  {
View Full Code Here

            if (c instanceof ConfigProperty16)
            {
               ConfigProperty16 c16 = (ConfigProperty16) c;
               XsdString newValue = new XsdString(ijProperties.get(c.getConfigPropertyName().getValue()), c
                  .getConfigPropertyValue().getId(), c.getConfigPropertyValue().getTag());
               ConfigProperty16 newProp = new ConfigProperty16Impl(c.getDescriptions(), c.getConfigPropertyName(),
                                                                   c.getConfigPropertyType(), newValue,
                                                                   c16.getConfigPropertyIgnore(),
                                                                   c16.getConfigPropertySupportsDynamicUpdates(),
                                                                   c16.getConfigPropertyConfidential(), c.getId());
               mergedProperties.add(newProp);
View Full Code Here

                  //building and returning object

                  if (configPropertyIgnore != null || configPropertySupportsDynamicUpdates != null
                        || configPropertyConfidential != null)
                  {
                     return new ConfigProperty16Impl(description, configPropertyName, configPropertyType,
                           configPropertyValue, configPropertyIgnore, configPropertySupportsDynamicUpdates,
                           configPropertyConfidential, id, null, ignoreId, updatesId, confidId);
                  }
                  else
                  {
View Full Code Here

            String attachedClassName = annotation.getClassName();
            Class attachedClass = Class.forName(attachedClassName, true, classLoader);

            if (hasInterface(attachedClass, "javax.resource.spi.ResourceAdapter"))
            {
               ConfigProperty16 cfgMeta = new ConfigProperty16Impl(descriptions, configPropertyName,
                                                                   configPropertyType,
                                                                   configPropertyValue, configPropertyIgnore,
                                                                   configPropertySupportsDynamicUpdates,
                                                                   configPropertyConfidential, null);
               if (valueMap.get(Metadatas.RA) == null)
               {
                  valueMap.put(Metadatas.RA, new ArrayList<ConfigProperty16>());
               }
               valueMap.get(Metadatas.RA).add(cfgMeta);
            }
            else
            {
               ConfigProperty16 cfgMeta = new ConfigProperty16Impl(descriptions, configPropertyName,
                                                                   configPropertyType,
                                                                   configPropertyValue, configPropertyIgnore,
                                                                   configPropertySupportsDynamicUpdates,
                                                                   configPropertyConfidential, null,
                                                                   attachedClassName);
View Full Code Here

TOP

Related Classes of org.jboss.jca.common.metadata.ra.ra16.Path

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.