org.jboss.resteasy.examples.springmvc
Class ContactService
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContactService
public ContactService()
save
public void save(Contact contact)
getContact
public Contact getContact(String lastName)
getAll
public Contacts getAll()
Copyright © 2011. All Rights Reserved.