private void handleAdministeredObject(AnnotationInfo element, ConnectorDescriptor desc, ConnectorConfigProperty ep, Class adminObjectClass, Class adminObjectIntf) { AdminObject adminObject = desc.getAdminObject(adminObjectIntf.getName(), adminObjectClass.getName()); if (adminObject != null) { if (!(isConfigDefined(adminObject.getConfigProperties(), ep))) { adminObject.addConfigProperty(ep); } if(!desc.getConfigPropertyProcessedClasses().contains(adminObjectClass.getName())){ processParent(adminObjectClass.getSuperclass(), adminObject.getConfigProperties()); desc.addConfigPropertyProcessedClass(adminObjectClass.getName()); } } else { // ideally adminObject should not be null as "@AdministeredObject" // should have been handled before @ConfigProperty getFailureResult(element, "could not get adminobject of interface " + "[ " + adminObjectIntf.getName() + " ]" + " and class [ " + adminObjectClass.getName() + " ]", true); } }
public static boolean processConnector(ConnectorDescriptor desc, ConnectorConfigProperty ep, Class declaringClass) { // make sure that the RA Class considered here is the one specified in descriptor // If not, it will be processed once the @Connector is selected during post-processing // handle the annotation specified on a ResourceAdapter JavaBean // make sure that the property is not already specified in DD if(desc.getResourceAdapterClass().equals(declaringClass.getName())){ if (!(isConfigDefined(desc.getConfigProperties(), ep))) { desc.addConfigProperty(ep); } if(!desc.getConfigPropertyProcessedClasses().contains(declaringClass.getName())){ processParent(declaringClass.getSuperclass(), desc.getConfigProperties()); desc.addConfigPropertyProcessedClass(declaringClass.getName()); } //indicate that the config-property is processed return true; }else{ //indicate that the config-property is not processed and need to be processed during post-processing return false; } }
if(!desc.getConfigPropertyProcessedClasses().contains(uniqueName)){ processParent(declaringClass.getSuperclass(), adminObject.getConfigProperties()); desc.addConfigPropertyProcessedClass(declaringClass.getName());
desc.addConfigPropertyProcessedClass(declaringClass.getName()); desc.addConfigPropertyProcessedClass(declaringClass.getName());
desc.addConfigPropertyProcessedClass(cd.getConnectionFactoryIntf());