org.glassfish.jersey.examples.osgi.helloworld.additional.resource
Class AdditionalResource

java.lang.Object
  extended by org.glassfish.jersey.examples.osgi.helloworld.additional.resource.AdditionalResource

@Path(value="/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 (adam.lindenthal at oracle.com)

Constructor Summary
AdditionalResource()
           
 
Method Summary
 String getAdditionalResourceMessage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdditionalResource

public AdditionalResource()
Method Detail

getAdditionalResourceMessage

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


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.