org.mule.example.bookstore
Class CatalogServiceImpl
java.lang.Object
org.mule.example.bookstore.CatalogServiceImpl
- All Implemented Interfaces:
- org.mule.api.lifecycle.Initialisable, CatalogAdminService, CatalogService
public class CatalogServiceImpl
- extends Object
- implements CatalogService, CatalogAdminService, org.mule.api.lifecycle.Initialisable
Bookstore catalog service which implements both the public interface for
browsing the catalog and the admin interface for adding books to the catalog.
- See Also:
CatalogService,
CatalogAdminService
| Fields inherited from interface org.mule.api.lifecycle.Initialisable |
PHASE_NAME |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CatalogServiceImpl
public CatalogServiceImpl()
initialise
public void initialise()
throws org.mule.api.lifecycle.InitialisationException
- Specified by:
initialise in interface org.mule.api.lifecycle.Initialisable
- Throws:
org.mule.api.lifecycle.InitialisationException
addBook
public long addBook(Book book)
- Description copied from interface:
CatalogAdminService
- Add a new book to the catalog
- Specified by:
addBook in interface CatalogAdminService
addBooks
public Collection<Long> addBooks(Collection<Book> booksToAdd)
- Description copied from interface:
CatalogAdminService
- Add a group of new books to the catalog
- Specified by:
addBooks in interface CatalogAdminService
getBooks
public Collection<Book> getBooks()
- Description copied from interface:
CatalogService
- Return a collection of all books in the catalog
- Specified by:
getBooks in interface CatalogService
getBook
public Book getBook(long bookId)
- Description copied from interface:
CatalogService
- Look up the details for a particular book by ID
- Specified by:
getBook in interface CatalogService
Copyright © 2003-2011 MuleSoft, Inc.. All Rights Reserved.