/** Obtains all the Connection definition names of a rar * @param rarName rar moduleName * @return Array of connection definition names. */ public String[] getAdminObjectInterfaceNames(String rarName) throws ConnectorRuntimeException { ConnectorDescriptor desc = getConnectorDescriptor(rarName); if(desc != null) { AdminObjectConfigParser adminObjectConfigParser = (AdminObjectConfigParser) ConnectorConfigParserFactory.getParser( ConnectorConfigParser.AOR); return adminObjectConfigParser.getAdminObjectInterfaceNames(desc); } else { return null; } }
/** * checks whether the specified intfName, className has presence in * admin objects of the RAR * @param rarName resource-adapter name * @param intfName admin object interface name * @param className admin object class name * @return boolean indicating the presence of admin object * @throws ConnectorRuntimeException when unable to determine the presence */ public boolean hasAdminObject(String rarName, String intfName, String className) throws ConnectorRuntimeException{ ConnectorDescriptor desc = getConnectorDescriptor(rarName); if(desc != null) { AdminObjectConfigParser adminObjectConfigParser = (AdminObjectConfigParser) ConnectorConfigParserFactory.getParser( ConnectorConfigParser.AOR); return adminObjectConfigParser.hasAdminObject(desc, intfName, className); } else { return false; } }
/** * gets the adminObjectClassNames pertaining to a rar & a specific * adminObjectInterfaceName * * @param rarName resource-adapter name * @param intfName admin-object-interface name * @return Array of AdminObjectInterface names as Strings * @throws ConnectorRuntimeException if parsing fails */ public String[] getAdminObjectClassNames(String rarName, String intfName) throws ConnectorRuntimeException { ConnectorDescriptor desc = getConnectorDescriptor(rarName); if(desc != null) { AdminObjectConfigParser adminObjectConfigParser = (AdminObjectConfigParser) ConnectorConfigParserFactory.getParser( ConnectorConfigParser.AOR); return adminObjectConfigParser.getAdminObjectClassNames(desc, intfName); } else { return null; } }
/** * Retrieves the admin object javabean properties with default values. * The default values will the values present in the ra.xml. If the * value is not present in ra.xxml, javabean is introspected to obtain * the default value present, if any. If intrspection fails or null is the * default value, empty string is returned. * If ra.xml has only the property and no value, empty string is the value * returned. * @param rarName rar module name * @param adminObjectIntf admin object interface * @param adminObjectClass admin object class * @return admin object javabean properties with * default values. * @throws ConnectorRuntimeException if property retrieval fails. */ public Properties getAdminObjectConfigProps( String rarName,String adminObjectIntf, String adminObjectClass) throws ConnectorRuntimeException { ConnectorDescriptor desc = getConnectorDescriptor(rarName); if(desc != null) { AdminObjectConfigParser adminObjectConfigParser = (AdminObjectConfigParser) ConnectorConfigParserFactory.getParser( ConnectorConfigParser.AOR); return adminObjectConfigParser.getJavaBeanProps( desc,adminObjectIntf, adminObjectClass, rarName); } else { return null; } }