Interface PortletContainerObject
- All Superinterfaces:
PortletContainer
- All Known Implementing Classes:
PortletContainerImpl
Contains life cycle and wiring details for the kernel environment.
- Version:
- $Revision: 630 $
- Author:
- Julien Viet
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPortletFilter(PortletFilter filter) Add a filter.voidcreate()Creates the portlet container.voiddestroy()Destroys the portlet container.javax.portlet.PortletReturns the current instance held by the container.voidremovePortletFilter(PortletFilter filter) Remove a filter.voidsetContext(PortletContainerContext context) Set/unset the portlet container context.voidsetPortletApplication(PortletApplication application) Set/unset the application.voidstart()Starts the portlet container.voidstop()Stops the portlet container.Methods inherited from interface org.gatein.pc.portlet.container.PortletContainer
dispatch, getContext, getId, getInfo, getPortletApplication
-
Method Details
-
setPortletApplication
Set/unset the application.- Parameters:
application- the related application
-
setContext
Set/unset the portlet container context.- Parameters:
context- the context
-
addPortletFilter
Add a filter.- Parameters:
filter- the portlet filter
-
removePortletFilter
Remove a filter.- Parameters:
filter- the portlet filter
-
create
Creates the portlet container.- Throws:
Exception- any exception preventing the creation
-
start
Starts the portlet container.- Throws:
Exception- any exception preventing the start
-
stop
void stop()Stops the portlet container. -
destroy
void destroy()Destroys the portlet container. -
getPortletInstance
javax.portlet.Portlet getPortletInstance()Returns the current instance held by the container.- Returns:
- the instance
-