org.apache.tiles.portlet.context
Class PortletTilesApplicationContext

java.lang.Object
  extended by org.apache.tiles.portlet.context.PortletTilesApplicationContext
All Implemented Interfaces:
TilesApplicationContext

public class PortletTilesApplicationContext
extends java.lang.Object
implements TilesApplicationContext

Portlet-based TilesApplicationContext implementation.

Version:
$Rev: 709140 $ $Date: 2008-10-30 12:07:50 +0100 (gio, 30 ott 2008) $

Field Summary
protected  javax.portlet.PortletContext context
          The PortletContext for this web application.
 
Constructor Summary
PortletTilesApplicationContext(javax.portlet.PortletContext context)
          Creates a new instance of PortletTilesApplicationContext.
 
Method Summary
 TilesRequestContext createRequestContext(java.lang.Object request, java.lang.Object response)
          Deprecated. Use TilesRequestContextFactory.createRequestContext(TilesApplicationContext, Object...) .
 java.util.Map<java.lang.String,java.lang.Object> getApplicationScope()
          
 java.lang.Object getContext()
          
 java.util.Map<java.lang.String,java.lang.String> getInitParams()
          
 javax.portlet.PortletContext getPortletContext()
          Return the PortletContext for this context.
 java.net.URL getResource(java.lang.String path)
          
 java.util.Set<java.net.URL> getResources(java.lang.String path)
          
 void initialize(javax.portlet.PortletContext context)
          Initialize (or reinitialize) this PortletTilesApplicationContext instance for the specified Portlet API objects.
 void release()
          Release references to allocated resources acquired in initialize() of via subsequent processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected javax.portlet.PortletContext context

The PortletContext for this web application.

Constructor Detail

PortletTilesApplicationContext

public PortletTilesApplicationContext(javax.portlet.PortletContext context)
Creates a new instance of PortletTilesApplicationContext.

Parameters:
context - The portlet context to use.
Method Detail

getContext

public java.lang.Object getContext()

Specified by:
getContext in interface TilesApplicationContext

initialize

public void initialize(javax.portlet.PortletContext context)

Initialize (or reinitialize) this PortletTilesApplicationContext instance for the specified Portlet API objects.

Parameters:
context - The PortletContext for this web application

release

public void release()

Release references to allocated resources acquired in initialize() of via subsequent processing. After this method is called, subsequent calls to any other method than initialize() will return undefined results.


getPortletContext

public javax.portlet.PortletContext getPortletContext()

Return the PortletContext for this context.

Returns:
The original portlet context.

getApplicationScope

public java.util.Map<java.lang.String,java.lang.Object> getApplicationScope()

Specified by:
getApplicationScope in interface TilesApplicationContext

getInitParams

public java.util.Map<java.lang.String,java.lang.String> getInitParams()

Specified by:
getInitParams in interface TilesApplicationContext

getResource

public java.net.URL getResource(java.lang.String path)
                         throws java.io.IOException

Specified by:
getResource in interface TilesApplicationContext
Throws:
java.io.IOException

getResources

public java.util.Set<java.net.URL> getResources(java.lang.String path)
                                         throws java.io.IOException

Specified by:
getResources in interface TilesApplicationContext
Throws:
java.io.IOException

createRequestContext

public TilesRequestContext createRequestContext(java.lang.Object request,
                                                java.lang.Object response)
Deprecated. Use TilesRequestContextFactory.createRequestContext(TilesApplicationContext, Object...) .

Creates a portlet context for a given request/response pair.

Parameters:
request - The request object.
response - The response object.
Returns:
The corresponding Tiles request context.


Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.