| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogMenuService
The LogMenuService service creates a logging version of a menu tree for debugging purposes. All calls to all exposed interfaces will automatically be logged to the standard Logger output. Create your desired menu tree first and wrap it with the log menu tree.
For an overview of Portlet Menus, start with MenuProvider.
Code example:
// service for tree logging LogMenuService logService=null; try { logService = (LogMenuService) portletContext.getService(LogMenuService.class); } catch ( PortletServiceUnavailableException e ) { throw new PortletException ("MemoryMenuTreePortlet: Exception: The LogMenuService is unavailable"); } catch ( PortletServiceNotFoundException e ) { throw new PortletException ("MemoryMenuTreePortlet: Exception: The LogMenuService has not been found"); } // wrap tree try { // service for tree logging wrappedMenuTree = logService.getMenuTree(menuTree); } catch ( MenuTreeException mte ) { throw new PortletException ("MemoryMenuTreePortlet: Exception getting menu tree from service"); }
Method Summary | |
---|---|
MenuTree | getMenuTree(MenuTree parent)
Deprecated. Creates a menu tree that logs all method calls on top of an existing tree using the standard Logger output. |
Method Detail |
---|
MenuTree getMenuTree(MenuTree parent)
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |