org.glassfish.admingui.common.gadget
Class GadgetHandlers

java.lang.Object
  extended by org.glassfish.admingui.common.gadget.GadgetHandlers

public class GadgetHandlers
extends java.lang.Object

This class provides access to GadgetModules. It also has a nice JSON utility for converting JavaBean Objects (and primitives, Collections, Maps, Strings, etc.) to JSON.

Author:
Ken Paulsen (ken.paulsen@sun.com)

Constructor Summary
GadgetHandlers()
           Default constructor.
 
Method Summary
static void getGadgetModule(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
           This handler returns a GadgetModule for the named gadget.
static GadgetModule getGadgetModule(java.net.URL url)
           This method returns a GadgetModule for the given URL.
static java.lang.Object invokeHandler(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
           This handler will invoke another handler.
static java.lang.Object parseString(java.lang.String test)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GadgetHandlers

public GadgetHandlers()

Default constructor.

Method Detail

getGadgetModule

public static void getGadgetModule(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)

This handler returns a GadgetModule for the named gadget. The name should either be a complete URL, or a context-root relative path to the gadget XML file (this also includes .xml files stored in .jar's / plugins).


getGadgetModule

public static GadgetModule getGadgetModule(java.net.URL url)

This method returns a GadgetModule for the given URL.


invokeHandler

public static java.lang.Object invokeHandler(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)

This handler will invoke another handler. This allows a generic handler to invoke another one and return the response(s), if any.

The following are the inputs are supported:


parseString

public static java.lang.Object parseString(java.lang.String test)


Copyright © 2012 GlassFish Community. All Rights Reserved.