|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.example.bookstore.CatalogServiceImpl
public class CatalogServiceImpl
Bookstore catalog service which implements both the public interface for browsing the catalog and the admin interface for adding books to the catalog.
CatalogService,
CatalogAdminService| Field Summary |
|---|
| Fields inherited from interface org.mule.example.bookstore.CatalogService |
|---|
URL |
| Fields inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
PHASE_NAME |
| Constructor Summary | |
|---|---|
CatalogServiceImpl()
|
|
| Method Summary | |
|---|---|
long |
addBook(Book book)
Add a new book to the catalog |
Collection<Long> |
addBooks(Collection<Book> books)
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()
Method used to perform any initialisation work. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CatalogServiceImpl()
| Method Detail |
|---|
public void initialise()
throws InitialisationException
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdown
RecoverableException - if an error occurs that can be recovered frompublic long addBook(Book book)
CatalogAdminService
addBook in interface CatalogAdminServicepublic Collection<Long> addBooks(Collection<Book> books)
CatalogAdminService
addBooks in interface CatalogAdminServicepublic Collection<Book> getBooks()
CatalogService
getBooks in interface CatalogServicepublic Book getBook(long bookId)
CatalogService
getBook in interface CatalogService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||