org.apache.tapestry.portlet
Class ApplicationPortlet
java.lang.Object
org.apache.tapestry.portlet.ApplicationPortlet
- All Implemented Interfaces:
- javax.portlet.Portlet
public class ApplicationPortlet
- extends Object
- implements javax.portlet.Portlet
Portlet implementation for Tapestry Portlet applilcations. It's job is to create and manage the
HiveMind registry, to use the tapestry.portlet.PortletApplicationInitializer
service to initialize HiveMind, and the delegate requests to the
tapestry.portlet.ActionRequestServicer
and
tapestry.portlet.RenderRequestServicer
services.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
Method Summary |
protected void |
addModuleIfExists(org.apache.hivemind.impl.RegistryBuilder builder,
org.apache.hivemind.ClassResolver resolver,
WebContext context,
String path)
Looks for a file in the context; if it exists, it is expected to be a HiveMind module
descriptor, and is added to the builder. |
protected org.apache.hivemind.Registry |
constructRegistry(javax.portlet.PortletConfig config)
Constructs the Registry. |
void |
destroy()
|
void |
init(javax.portlet.PortletConfig config)
|
void |
processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
|
void |
render(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationPortlet
public ApplicationPortlet()
destroy
public void destroy()
- Specified by:
destroy
in interface javax.portlet.Portlet
init
public void init(javax.portlet.PortletConfig config)
throws javax.portlet.PortletException
- Specified by:
init
in interface javax.portlet.Portlet
- Throws:
javax.portlet.PortletException
constructRegistry
protected org.apache.hivemind.Registry constructRegistry(javax.portlet.PortletConfig config)
- Constructs the Registry. The Registry is constructed from the classpath, plus two optional
files:
- WEB-INF/ name /hivemodule.xml
- WEB-INF/hivemodule.xml
.
Where name is the name of the portlet.
addModuleIfExists
protected void addModuleIfExists(org.apache.hivemind.impl.RegistryBuilder builder,
org.apache.hivemind.ClassResolver resolver,
WebContext context,
String path)
- Looks for a file in the context; if it exists, it is expected to be a HiveMind module
descriptor, and is added to the builder.
- Since:
- 4.0
processAction
public void processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws javax.portlet.PortletException,
IOException
- Specified by:
processAction
in interface javax.portlet.Portlet
- Throws:
javax.portlet.PortletException
IOException
render
public void render(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws javax.portlet.PortletException,
IOException
- Specified by:
render
in interface javax.portlet.Portlet
- Throws:
javax.portlet.PortletException
IOException
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.