org.jboss.resteasy.examples.springmvc
Class ContactService

java.lang.Object
  extended by org.jboss.resteasy.examples.springmvc.ContactService

@Service
public class ContactService
extends Object

Simple Service object. Really, this class isn't needed in this case. However Controller/Service/Repository layering is a pretty common design pattern in Spring projects. While this example doesn't have a Repository/DAO, the ContactService class will show how to integrate Controllers with the layers below in a Spring/RESTEasy application.

Version:
$Revision: 1 $
Author:
Solomon Duskis

Constructor Summary
ContactService()
           
 
Method Summary
 Contacts getAll()
           
 Contact getContact(String lastName)
           
 void save(Contact contact)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContactService

public ContactService()
Method Detail

save

public void save(Contact contact)

getContact

public Contact getContact(String lastName)

getAll

public Contacts getAll()


Copyright © 2011. All Rights Reserved.