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());
ml.addConfigProperty(ep); if (!desc.getConfigPropertyProcessedClasses().contains(declaringClass.getName())) { processParent(declaringClass.getSuperclass(), ml.getConfigProperties()); desc.addConfigPropertyProcessedClass(declaringClass.getName()); ml.addConfigProperty(ep); if(!desc.getConfigPropertyProcessedClasses().contains(declaringClass.getName())){ processParent(declaringClass.getSuperclass(), ml.getConfigProperties()); desc.addConfigPropertyProcessedClass(declaringClass.getName());
if (!desc.getConfigPropertyProcessedClasses().contains(raClass)) { Class claz = getClass(raClass); ConfigPropertyHandler.processParent(claz, desc.getConfigProperties()); if (!desc.getConfigPropertyProcessedClasses().contains(connectionFactoryClass)) { Class claz = getClass(connectionDef.getManagedConnectionFactoryImpl()); ConfigPropertyHandler.processParent(claz, connectionDef.getConfigProperties()); String activationSpecClass = ml.getActivationSpecClass(); if (activationSpecClass != null && !activationSpecClass.equals("")) { if (!desc.getConfigPropertyProcessedClasses().contains(activationSpecClass)) { Class claz = getClass(activationSpecClass); ConfigPropertyHandler.processParent(claz, ml.getConfigProperties()); AdminObject ao = (AdminObject) it.next(); String uniqueName = ao.getAdminObjectInterface() + "_" + ao.getAdminObjectClass(); if (!desc.getConfigPropertyProcessedClasses().contains(uniqueName)) { Class claz = getClass(ao.getAdminObjectClass()); ConfigPropertyHandler.processParent(claz, ao.getConfigProperties());
descriptor.getConfigPropertyProcessedClasses().clear();
if(!desc.getConfigPropertyProcessedClasses().contains(cd.getConnectionFactoryIntf())){ processParent(declaringClass.getSuperclass(), cd.getConfigProperties()); desc.addConfigPropertyProcessedClass(cd.getConnectionFactoryIntf());