use of com.sun.enterprise.deployment.annotation.introspection.AppClientPersistenceDependencyAnnotationScanner in project Payara by payara.
the class StandAloneAppClientInfo method mainClassContainsPURefcAnnotations.
protected boolean mainClassContainsPURefcAnnotations(ApplicationClientDescriptor acDescr) throws MalformedURLException, ClassNotFoundException, IOException, URISyntaxException {
AnnotationDetector annoDetector = new AnnotationDetector(new AppClientPersistenceDependencyAnnotationScanner());
// e.g. FROM a.b.Foo or Foo TO a/b/Foo.class or Foo.class
String mainClassEntryName = acDescr.getMainClassName().replace('.', '/') + ".class";
return classContainsAnnotation(mainClassEntryName, annoDetector, appClientArchive, acDescr);
}
Aggregations