list.add(AuthenticationMechanism.class);
*/
if (aeHandler instanceof RarBundleContext) {
RarBundleContext rarContext = (RarBundleContext) aeHandler;
ConnectorDescriptor desc = rarContext.getDescriptor();
Class annotatedClass = (Class)element.getAnnotatedElement();
if(desc.getResourceAdapterClass().equals("")){
desc.addConnectorAnnotation(element);
return getSuccessfulProcessedResult(list);
}else if(!isResourceAdapterClass(annotatedClass)){
desc.addConnectorAnnotation(element);
return getSuccessfulProcessedResult(list);
}else if(!desc.getResourceAdapterClass().equals(annotatedClass.getName())){
desc.addConnectorAnnotation(element);
return getSuccessfulProcessedResult(list);
}else{
processDescriptor(annotatedClass, connector, desc);
desc.setValidConnectorAnnotationProcessed(true);
}
} else {
String logMessage = "Not a rar bundle context";
return getFailureResult(element, logMessage, true);
}