|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.theme.impl.render.RendererFactory
Factory to instantiate implementations of the render set and layout strategy.
Method Summary | |
static AbstractLayoutStrategy |
getLayoutStrategy(java.lang.ClassLoader loader,
org.apache.xpath.CachedXPathAPI xpath,
org.w3c.dom.Node strategyNode)
Get the defined layout strategy from the provided layout node |
static RenderContext |
getRenderContext(PortalRenderSet renderSet,
MediaType contentType,
RegionOrientation orientation,
java.lang.String regionID,
java.util.Map pageProperties,
java.util.List regionNames,
javax.servlet.http.HttpServletRequest request)
Get a new instance of a render context, based on the provided values. |
static PortalRenderSet |
getRenderSet(java.lang.String appID,
java.lang.String name,
java.lang.ClassLoader loader,
org.apache.xpath.CachedXPathAPI xpath,
org.w3c.dom.Node renderSet)
Get a portal render set based on the provided information in the renderSet node, and its sub elements. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static AbstractLayoutStrategy getLayoutStrategy(java.lang.ClassLoader loader, org.apache.xpath.CachedXPathAPI xpath, org.w3c.dom.Node strategyNode) throws javax.xml.transform.TransformerException, java.lang.ClassNotFoundException, javax.activation.MimeTypeParseException, java.lang.IllegalAccessException, java.lang.InstantiationException
loader
- the classloader of the portal web application that contains the descriptor
to which the provided strategyNode belongsxpath
- a CachedXPathAPI instance to use to xpath to the needed sub elements of the strategyNodestrategyNode
- the Node in the layout descriptor that represents the strategy
javax.xml.transform.TransformerException
java.lang.ClassNotFoundException
javax.activation.MimeTypeParseException
java.lang.IllegalAccessException
java.lang.InstantiationException
LayoutStrategy
public static PortalRenderSet getRenderSet(java.lang.String appID, java.lang.String name, java.lang.ClassLoader loader, org.apache.xpath.CachedXPathAPI xpath, org.w3c.dom.Node renderSet) throws javax.xml.transform.TransformerException, javax.activation.MimeTypeParseException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.ClassNotFoundException
A render set consists of implementations for the 4 renderer interfaces (Regionrenderer, WindowRenderer, PortletRenderer, DecorationRenderer). A render set is defined either as part of a layout descriptor (see portal-layouts.xml), or in case of the default renderer set,in WEB-INF/portal-renderSet.xml.
xpath
- a CachedXPathAPI instance to provide xpath capability to this methodrenderSet
- the 'set' Node of the xml definition of the render set
javax.xml.transform.TransformerException
- if parsing the set node for the implementation classes fails due to xpath problems
java.lang.ClassNotFoundException
javax.activation.MimeTypeParseException
java.lang.IllegalAccessException
java.lang.InstantiationException
PortalRenderSet
public static RenderContext getRenderContext(PortalRenderSet renderSet, MediaType contentType, RegionOrientation orientation, java.lang.String regionID, java.util.Map pageProperties, java.util.List regionNames, javax.servlet.http.HttpServletRequest request)
The render context is needed for a render set to produce its markup. The render set is used by the region tag in a layout jsp.
renderSet
- the render set to use for this request and tagcontentType
- the content/media/mime type of the current requestorientation
- the orientation of the region render tagregionID
- the id attribute value to use for the rendered tagpageProperties
- the defined page properties from the portal descriptorregionNames
- request
- the current Servlet request that is being serviced
RenderContext
,
PortalRenderSet
,
MediaType
,
RegionOrientation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |