Class SpringSingletonResource
java.lang.Object
org.glassfish.jersey.examples.helloworld.spring.SpringSingletonResource
@Path("spring-singleton-hello")
@Component
@Singleton
public class SpringSingletonResource
extends Object
Jersey 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
Constructors -
Method Summary
-
Constructor Details
-
SpringSingletonResource
public SpringSingletonResource()
-
-
Method Details
-
getHello
@GET @Produces("text/plain") public String getHello(@Context HttpHeaders headers, @QueryParam("p1") String p1)
-