Class AdditionalResource


  • @Path("/additional")
    public class AdditionalResource
    extends Object
    Alternate version of test resource for osgi-helloworld-webapp example; The original class within additional-bundle module has the same name and resides withing the same package. The containing module's (alternate-version-bundle) pom.xml configures the MANIFEST bundle headers as an older version of additional-bundle. Both versions are then explicitly loaded into OSGi runtime and the correct version (the one in additional-bundle module) should be used by Jersey. If this version of the resource is used, the test will fail.
    Author:
    Adam Lindenthal
    • Constructor Detail

      • AdditionalResource

        public AdditionalResource()
    • Method Detail

      • getAdditionalResourceMessage

        @GET
        @Produces("text/plain")
        public String getAdditionalResourceMessage()