|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.wsrp4j.consumer.app.driver.PageRegistryImpl
This class implements the PageRegistry interface and
can be used to administer Page objects.
Page,
PageRegistry| Field Summary | |
private HandleGenerator |
handleGenerator
|
private static PageRegistry |
instance
|
private Logger |
logger
|
private java.util.Hashtable |
pages
|
private PersistentDataObject |
persistentDataObject
|
private PersistentHandler |
persistentHandler
|
| Constructor Summary | |
private |
PageRegistryImpl()
|
| Method Summary | |
void |
addPage(Page page)
Add a page to the registry |
private void |
delete(Page page)
|
boolean |
existsPage(java.lang.String pageID)
Tests if page with the given ID exists |
java.util.Iterator |
getAllPages()
Get all pages in the registry |
(package private) static PageRegistry |
getInstance()
Get a reference to the singleton of the page registry. |
Page |
getPage(java.lang.String pageID)
Get the page with the given ID |
Page |
removePage(java.lang.String pageID)
Remove the page with the given ID from the registry |
private void |
restore()
Restores all available portlets from persistent file store |
void |
stateChanged(StateChangedEvent event)
StateChanged event occured |
private void |
store(Page page)
Store a page |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static PageRegistry instance
private java.util.Hashtable pages
private PersistentDataObject persistentDataObject
private PersistentHandler persistentHandler
private HandleGenerator handleGenerator
private Logger logger
| Constructor Detail |
private PageRegistryImpl()
| Method Detail |
static PageRegistry getInstance()
public void addPage(Page page)
addPage in interface PageRegistrypage - The page to addpublic Page getPage(java.lang.String pageID)
getPage in interface PageRegistrypageID - ID of the page
public java.util.Iterator getAllPages()
getAllPages in interface PageRegistrypublic Page removePage(java.lang.String pageID)
removePage in interface PageRegistrypageID - ID of the page to be removed
public boolean existsPage(java.lang.String pageID)
existsPage in interface PageRegistrypageID - ID of the page
public void stateChanged(StateChangedEvent event)
stateChanged in interface StateChangedListenerevent -
private void restore()
throws WSRPException
WSRPException
private void store(Page page)
throws WSRPException
WSRPExceptionprivate void delete(Page page)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||