protected AnnotationTargetsImpl_PolicyData getPolicyData ( ScanPolicy policy ) { if ( policy == ScanPolicy . SEED ) { scanDirectClasses ( ) ; return seedData ; } else if ( policy == ScanPolicy . PARTIAL ) { scanDirectClasses ( ) ; return partialData ; } else if ( policy == ScanPolicy . EXCLUDED ) { scanDirectClasses ( ) ; return excludedData ; } else if ( policy == ScanPolicy . EXTERNAL ) { scanReferenceClasses ( ) ; return externalData ; } else { throw new IllegalArgumentException ( "Policy [ " + policy + " ]" ) ; } }
Version for results retrieval ... trigger a scan .