public interface IBookLoader
| Modifier and Type | Method and Description |
|---|---|
IBookPageFactory |
getPageFactory(java.lang.String name) |
void |
invalidateBook()
Invalidates the current instance of the book.
|
IForesterBook |
loadBook()
Loads the book if it was not loaded already or if it was invalidated.
|
void |
registerContentType(java.lang.String name,
java.lang.Class<? extends BookContent> contentClass)
Adds a content type.
|
void |
registerPageFactory(java.lang.String name,
IBookPageFactory factory) |
void registerContentType(java.lang.String name,
java.lang.Class<? extends BookContent> contentClass)
name - The name of the content type.contentClass - The class for the deserialization of the content.void registerPageFactory(java.lang.String name,
IBookPageFactory factory)
IBookPageFactory getPageFactory(java.lang.String name)
IForesterBook loadBook()
void invalidateBook()
loadBook() gets called a new instance of the book will be loaded.