Interface AdminObjectConfigParser

    • Method Detail

      • getAdminObjectInterfaceNames

        String[] getAdminObjectInterfaceNames​(ConnectorDescriptor desc)
                                       throws ConnectorRuntimeException
        Obtains the admin object intercface names of a given rar.
        Parameters:
        desc - ConnectorDescriptor pertaining to rar.
        Returns:
        Array of admin object interface names as strings
        Throws:
        ConnectorRuntimeException - If rar is not exploded or incorrect ra.xml
      • getAdminObjectClassNames

        String[] getAdminObjectClassNames​(ConnectorDescriptor desc,
                                          String intfName)
                                   throws ConnectorRuntimeException
        gets the adminObjectClassNames pertaining to a rar & a specific adminObjectInterfaceName
        Parameters:
        desc - ConnectorDescriptor pertaining to rar.
        intfName - admin-object-interface name
        Returns:
        Array of AdminObjectInterface names as Strings
        Throws:
        ConnectorRuntimeException - if parsing fails
      • hasAdminObject

        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
        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
      • getJavaBeanProps

        Properties getJavaBeanProps​(ConnectorDescriptor desc,
                                    String adminObjectIntfName,
                                    String adminObjectClassName,
                                    String rarName)
                             throws ConnectorRuntimeException
        Obtains the merged javabean properties (properties present in ra.xml and introspected properties) of a specific configuration.
        Parameters:
        desc - ConnectorDescriptor pertaining to rar .
        adminObjectIntfName - admin object interface .
        adminObjectClassName - admin object classname
        rarName - resource-adapter-name
        Returns:
        Merged properties.
        Throws:
        ConnectorRuntimeException - If rar is not exploded or incorrect ra.xml