public Connector merge ( Connector connector , AnnotationRepository annotationRepository , ClassLoader classLoader ) throws Exception { // Process annotations if ( connector == null || ( connector . getVersion ( ) == Version . V_16 || connector . getVersion ( ) == Version . V_17 ) ) { boolean isMetadataComplete = false ; if ( connector != null ) { isMetadataComplete = connector . isMetadataComplete ( ) ; } if ( connector == null || ! isMetadataComplete ) { if ( connector == null ) { Connector annotationsConnector = process ( annotationRepository , null , classLoader ) ; connector = annotationsConnector ; } else { Connector annotationsConnector = process ( annotationRepository , ( ( ResourceAdapter ) connector . getResourceadapter ( ) ) . getResourceadapterClass ( ) , classLoader ) ; connector = connector . merge ( annotationsConnector ) ; } } } return connector ; }
Scan for annotations in the URLs specified