@Override protected boolean postHandles(ReadableArchive abstractArchive) throws IOException { AnnotationDetector detector = new AnnotationDetector(new EjbComponentAnnotationScanner()); return (!DeploymentUtils.isWebArchive(abstractArchive)) && detector.hasAnnotationInArchiveWithNoScanning(abstractArchive); } }
public boolean hasAnnotationInArchive(ReadableArchive archive) throws IOException { Enumeration<String> entries = archive.entries(); while (entries.hasMoreElements()) { String entryName = entries.nextElement(); if (entryName.endsWith(".class")) { if (containsAnnotation(archive, entryName)) { return true; } } } return false; }
new AnnotationDetector(new EjbComponentAnnotationScanner()); for (int i = 0; i < unknowns.size(); i++) { File jarFile = new File(unknowns.get(i).getURI().getSchemeSpecificPart()); try { if (detector.hasAnnotationInArchive(unknowns.get(i))) { String uri = deriveArchiveUri(appRoot, jarFile, directory);
return hasAnnotationInArchive(archive);
new AnnotationDetector(new EjbComponentAnnotationScanner()); for (int i = 0; i < unknowns.size(); i++) { File jarFile = new File(unknowns.get(i).getURI().getSchemeSpecificPart()); try { if (detector.hasAnnotationInArchive(unknowns.get(i))) { String uri = deriveArchiveUri(appRoot, jarFile, directory);
return hasAnnotationInArchive(archive);
@Override protected boolean postHandles(ReadableArchive abstractArchive) throws IOException { AnnotationDetector detector = new AnnotationDetector(new EjbComponentAnnotationScanner()); return (!DeploymentUtils.isArchiveOfType(abstractArchive, DOLUtils.warType(), locator)) && detector.hasAnnotationInArchiveWithNoScanning(abstractArchive); } }
public boolean hasAnnotationInArchive(ReadableArchive archive) throws IOException { Enumeration<String> entries = archive.entries(); while (entries.hasMoreElements()) { String entryName = entries.nextElement(); if (entryName.endsWith(".class")) { if (containsAnnotation(archive, entryName)) { return true; } } } return false; }
public boolean containsAnnotation(ReadableArchive archive, String entryName) throws IOException { return containsAnnotation(archive.getEntry(entryName), archive.getEntrySize(entryName)); }
public boolean containsAnnotation(ReadableArchive archive, String entryName) throws IOException { return containsAnnotation(archive.getEntry(entryName), archive.getEntrySize(entryName)); }