public class CatalogServiceImpl extends Object implements CatalogService, CatalogAdminService, org.mule.api.lifecycle.Initialisable
CatalogService,
CatalogAdminServiceURL| Constructor and Description |
|---|
CatalogServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
long |
addBook(Book book)
Add a new book to the catalog
|
Collection<Long> |
addBooks(Collection<Book> booksToAdd)
Add a group of new books to the catalog
|
Book |
getBook(long bookId)
Look up the details for a particular book by ID
|
Collection<Book> |
getBooks()
Return a collection of all books in the catalog
|
void |
initialise() |
public void initialise()
throws org.mule.api.lifecycle.InitialisationException
initialise in interface org.mule.api.lifecycle.Initialisableorg.mule.api.lifecycle.InitialisationExceptionpublic long addBook(Book book)
CatalogAdminServiceaddBook in interface CatalogAdminServicepublic Collection<Long> addBooks(Collection<Book> booksToAdd)
CatalogAdminServiceaddBooks in interface CatalogAdminServicepublic Collection<Book> getBooks()
CatalogServicegetBooks in interface CatalogServicepublic Book getBook(long bookId)
CatalogServicegetBook in interface CatalogServiceCopyright © 2003–2014 MuleSoft, Inc.. All rights reserved.