org.glassfish.jersey.examples.hello.spring.annotations.annotations
Class SpringRequestResource

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

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

Integration of jersey and spring. This rest controller is a singleton spring bean with an autowired depency from spring

Author:
Geoffroy Warin (http://geowarin.github.io)

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-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.