Search in sources :

Example 1 with AppClientPersistenceDependencyAnnotationScanner

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);
}
Also used : AnnotationDetector(com.sun.enterprise.deployment.util.AnnotationDetector) AppClientPersistenceDependencyAnnotationScanner(com.sun.enterprise.deployment.annotation.introspection.AppClientPersistenceDependencyAnnotationScanner)

Aggregations

AppClientPersistenceDependencyAnnotationScanner (com.sun.enterprise.deployment.annotation.introspection.AppClientPersistenceDependencyAnnotationScanner)1 AnnotationDetector (com.sun.enterprise.deployment.util.AnnotationDetector)1