Class AdminObjectConfigParserImpl

    • Constructor Detail

      • AdminObjectConfigParserImpl

        public AdminObjectConfigParserImpl()
        Default constructor.
    • Method Detail

      • getJavaBeanProps

        public Properties getJavaBeanProps​(ConnectorDescriptor desc,
                                           String adminObjectInterface,
                                           String rarName)
                                    throws ConnectorRuntimeException
        Parses the ra.xml for the admin object javabean properties. The admin object to be parsed is identified by the moduleDir where ra.xml is present and the adminObject interface. Admin object interface 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 no adminObjectInterce is found in ra.xml. If rar is deployed and admin Object interface is present but no properties are present for the corresponding adminobjectInterface, null is returned.

        Specified by:
        getJavaBeanProps in interface ConnectorConfigParser
        Parameters:
        desc - ConnectorDescriptor pertaining to rar.
        adminObjectInterface - AdminObject interface
        Returns:
        Javabean properties with the propety names and values of propeties. 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 no admin object intercface is found in ra.xml
      • getJavaBeanProps

        public Properties getJavaBeanProps​(ConnectorDescriptor desc,
                                           String adminObjectInterface,
                                           String adminObjectClass,
                                           String rarName)
                                    throws ConnectorRuntimeException
        Parses the ra.xml for the admin object javabean properties. The admin object to be parsed is identified by the moduleDir where ra.xml is present and the adminObject interface. Admin object interface 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 no adminObjectInterce is found in ra.xml. If rar is deployed and admin Object interface is present but no properties are present for the corresponding adminobjectInterface, null is returned.

        Specified by:
        getJavaBeanProps in interface AdminObjectConfigParser
        Parameters:
        desc - ConnectorDescriptor pertaining to rar.
        adminObjectInterface - AdminObject interface
        adminObjectClass - AdminObject class
        rarName - resource-adapter-name
        Returns:
        Javabean properties with the propety names and values of propeties. 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 no admin object intercface is found in ra.xml
      • hasAdminObject

        public boolean hasAdminObject​(ConnectorDescriptor desc,
                                      String intfName,
                                      String className)
                               throws ConnectorRuntimeException
        Checks whether the provided interfacename and classname combination is present in any of the admin objects for the resource-adapter
        Specified by:
        hasAdminObject in interface AdminObjectConfigParser
        Parameters:
        desc - ConnectorDescriptor pertaining to rar.
        intfName - interface-name
        className - class-name
        Returns:
        boolean indicating the presence of adminobject
        Throws:
        ConnectorRuntimeException - If rar is not exploded or incorrect ra.xml