org.glassfish.jersey.examples.helloworld.spring
Class SpringRequestResource

java.lang.Object
  extended by org.glassfish.jersey.examples.helloworld.spring.SpringRequestResource

@Path(value="spring-hello")
@Component
public class SpringRequestResource
extends Object

Jersey2 Spring integration example. Demonstrate how to use Spring managed JAX-RS resource class with request scope (+ Spring bean DI).

Author:
Marko Asplund (marko.asplund at gmail.com)

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

Constructor Detail

SpringRequestResource

public SpringRequestResource()
Method Detail

getHello

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


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