java.lang.Object | ||
↳ | GenericPortlet | |
↳ | org.springframework.web.portlet.GenericPortletBean |
Known Direct Subclasses |
Known Indirect Subclasses |
Simple extension of javax.portlet.GenericPortlet
that treats
its config parameters as bean properties.
A very handy superclass for any type of portlet. Type conversion is automatic. It is also possible for subclasses to specify required properties.
This portlet leaves request handling to subclasses, inheriting the default
behaviour of GenericPortlet (doDispatch
, processAction
, etc).
This portlet superclass has no dependency on a Spring application context, in contrast to the FrameworkPortlet class which loads its own context.
addRequiredProperty(String)
initPortletBean()
FrameworkPortlet
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
logger | Logger available to subclasses |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Overridden method that simply returns
null when no
PortletConfig set yet. | |||||||||||
Overridden method that simply returns
null when no
PortletConfig set yet. | |||||||||||
Map config parameters onto bean properties of this portlet, and
invoke subclass initialization.
| |||||||||||
Set the
Environment that this object runs in.
Any environment set here overrides the |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Subclasses can invoke this method to specify that this property
(which must match a JavaBean property they expose) is mandatory,
and must be supplied as a config parameter.
| |||||||||||
Initialize the BeanWrapper for this GenericPortletBean,
possibly with custom editors.
| |||||||||||
Subclasses may override this to perform custom initialization.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.context.EnvironmentAware
|
Logger available to subclasses
Overridden method that simply returns null
when no
PortletConfig set yet.
Overridden method that simply returns null
when no
PortletConfig set yet.
Map config parameters onto bean properties of this portlet, and invoke subclass initialization.
if bean properties are invalid (or required properties are missing), or if subclass initialization fails. | |
PortletException |
Set the Environment
that this object runs in.
Any environment set here overrides the DefaultPortletEnvironment
provided by default.
Subclasses can invoke this method to specify that this property (which must match a JavaBean property they expose) is mandatory, and must be supplied as a config parameter. This method would normally be called from a subclass constructor.
property | name of the required property |
---|
Initialize the BeanWrapper for this GenericPortletBean, possibly with custom editors.
bw | the BeanWrapper to initialize |
---|
BeansException | if thrown by BeanWrapper methods |
---|
Subclasses may override this to perform custom initialization. All bean properties of this portlet will have been set before this method is invoked. This default implementation does nothing.
if subclass initialization fails | |
PortletException |