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

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

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

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

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

Constructor Summary
SpringSingletonResource()
           
 
Method Summary
 String getHello(javax.ws.rs.core.HttpHeaders headers, String p1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringSingletonResource

public SpringSingletonResource()
Method Detail

getHello

@GET
@Produces(value="text/plain")
public String getHello(@Context
                                    javax.ws.rs.core.HttpHeaders headers,
                                    @QueryParam(value="p1")
                                    String p1)


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