Class MessageListenerConfigParserImpl

    • Constructor Detail

      • MessageListenerConfigParserImpl

        public MessageListenerConfigParserImpl()
        Default constructor.
    • Method Detail

      • getJavaBeanProps

        public Properties getJavaBeanProps​(ConnectorDescriptor desc,
                                           String messageListenerType,
                                           String rarName)
                                    throws ConnectorRuntimeException
        Parses the ra.xml for the ActivationSpec javabean properties. The ActivationSpec to be parsed is identified by the moduleDir where ra.xml is present and the message listener type. message listener type will be unique in a given ra.xml. It throws ConnectorRuntimeException if either or both the parameters are null, if corresponding rar is not deployed, if message listener type mentioned as parameter is not found in ra.xml. If rar is deployed and message listener (type mentioned) is present but no properties are present for the corresponding message listener, null is returned.
        Specified by:
        getJavaBeanProps in interface ConnectorConfigParser
        Parameters:
        desc - ConnectorDescriptor pertaining to rar.
        messageListenerType - message listener type.It is uniqie across all sub-elements in element in a given rar.
        Returns:
        Javabean properties with the property names and values of properties. The property values will be the values mentioned in ra.xml if present. Otherwise it will be the default values obtained by introspecting the javabean. In both the case if no value is present, empty String is returned as the value.
        Throws:
        ConnectorRuntimeException - if either of the parameters are null. If corresponding rar is not deployed i.e moduleDir is invalid. If messagelistener type is not found in ra.xml
      • getJavaBeanReturnTypes

        public Properties getJavaBeanReturnTypes​(ConnectorDescriptor desc,
                                                 String messageListenerType,
                                                 String rarName)
                                          throws ConnectorRuntimeException
        Returns the Properties object consisting of propertyname as the key and datatype as the value.
        Specified by:
        getJavaBeanReturnTypes in interface MessageListenerConfigParser
        Parameters:
        messageListenerType - message listener type.It is uniqie across all sub-elements in element in a given rar.
        desc - ConnectorDescriptor pertaining to rar.
        Returns:
        Properties object with the property names(key) and datatype of property(as value).
        Throws:
        ConnectorRuntimeException - if either of the parameters are null. If corresponding rar is not deployed i.e moduleDir is invalid. If messagelistener type is not found in ra.xml