Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-4700

Only use org.reflections, replace scannotations usage in jbpm-kie-services with org.reflections

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • jBPM_6.3.0.Beta2
    • None
    • None
    • NEW
    • NEW

      Scannotations are org.reflections are 2 libraries doing the exact same thing.
      Currently KIE is using both (see [1][2]):

      • scannotation in jbpm-kie-services
      • org.reflections in jbpm-human-task and kie-remote

      Optaplanner needs this functionality too and it will be using org.reflections, because:

      • scannotation is not JEE (war)/JSE agnostic. I couldn't get it to work well on jboss AS without breaking it in JSE or other environments.
      • scannotation development is no longer active.
      • org.reflections is scannotation++. Org.reflections is the natural successor and based on the scannotation work.
      • In a StackOverflow thread org.reflections has 79 votes and scannotation only 6:
        http://stackoverflow.com/questions/259140/scanning-java-annotations-at-runtime
      • I experimented with both, and org.reflections has a clearly superior API.
      • scannotations is used by resteasy (Bill wrote both), but errai uses org.reflections (it has embedded/shaded it).

      Therefore I suggest to replace scannotation by org.reflections.

      [1] script/find-all.sh pom.xml scannotation
      ./jbpm/jbpm-services/jbpm-kie-services/pom.xml: <groupId>org.scannotation</groupId>
      ./jbpm/jbpm-services/jbpm-kie-services/pom.xml: <artifactId>scannotation</artifactId>
      ./jbpm-designer/jbpm-designer-distribution-wars/pom.xml: <groupId>org.scannotation</groupId>
      ./jbpm-designer/jbpm-designer-distribution-wars/pom.xml: <artifactId>scannotation</artifactId>
      ./kie-wb-distributions/kie-wb/kie-wb-webapp/pom.xml: <groupId>org.scannotation</groupId>
      ./kie-wb-distributions/kie-wb/kie-wb-webapp/pom.xml: <artifactId>scannotation</artifactId>
      ./kie-wb-distributions/kie-drools-wb/kie-drools-wb-webapp/pom.xml: <groupId>org.scannotation</groupId>
      ./kie-wb-distributions/kie-drools-wb/kie-drools-wb-webapp/pom.xml: <artifactId>scannotation</artifactId>

      [2] script/find-all.sh pom.xml org.reflections
      ./jbpm/jbpm-human-task/jbpm-human-task-core/pom.xml: <groupId>org.reflections</groupId>
      ./droolsjbpm-integration/kie-remote/kie-remote-ws/kie-remote-ws-impl/pom.xml: <groupId>org.reflections</groupId>
      ./droolsjbpm-integration/kie-remote/kie-remote-ws/kie-remote-ws-common/pom.xml: <groupId>org.reflections</groupId>
      ./droolsjbpm-integration/kie-remote/kie-remote-ws/kie-remote-ws-gen-wsdl/pom.xml: <groupId>org.reflections</groupId>
      ./droolsjbpm-integration/kie-remote/kie-remote-services/pom.xml: <groupId>org.reflections</groupId>
      ./droolsjbpm-integration/kie-remote/kie-remote-jaxb-gen/pom.xml: <groupId>org.reflections</groupId>
      ./droolsjbpm-integration/kie-remote/kie-remote-client/pom.xml: <groupId>org.reflections</groupId>
      ./droolsjbpm-integration/kie-remote/kie-remote-jaxb/pom.xml: <groupId>org.reflections</groupId>
      ./droolsjbpm-build-bootstrap/kie-platform-bom/pom.xml: <groupId>org.reflections</groupId>

            swiderski.maciej Maciej Swiderski (Inactive)
            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: