public class GxpInstance extends Gxp
ObjectFactory
. Can be used to write a GXP or create a
HtmlClosure. Pulls non-constructor GXP parameters from Struts 2 value stack.Modifier and Type | Method and Description |
---|---|
Class<?> |
getGxpClass() |
protected Object |
getGxpInstance() |
static GxpInstance |
getInstance(Class gxpClass)
Looks up
GxpInstance instance for the given GXP class. |
static GxpInstance |
getInstance(String gxpPath)
Looks up Gxp instance for GXP with given path.
|
void |
setObjectFactory(ObjectFactory objectFactory) |
getArgs, getGxpClassForPath, getGxpClosure, getGxpClosure, getOverrides, getParams, lookupMethodByName, setValueStackFactory, write, write
protected Object getGxpInstance()
This implementation uses the ObjectFactory
to try to create an
instance of the Interface
class that is nested within the GXP
class. If that doesn't work, it falls back to trying to use the
ObjectFactory
to create an instance of the nested Instance
class, in case there is no binding for the Interface
.
getGxpInstance
in class AbstractGxp<com.google.gxp.html.HtmlClosure>
public Class<?> getGxpClass()
getGxpClass
in class AbstractGxp<com.google.gxp.html.HtmlClosure>
public static GxpInstance getInstance(String gxpPath)
gxpPath
- Gxp pathpublic static GxpInstance getInstance(Class gxpClass)
GxpInstance
instance for the given GXP class.gxpClass
- Gxp classpublic void setObjectFactory(ObjectFactory objectFactory)
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.