com.ibm.portal.resolver.portlet
Interface ResourceDataSourceFactory

All Superinterfaces:
DataSourceFactory

public interface ResourceDataSourceFactory
extends DataSourceFactory

Representation of a DataSourceFactory used by portlets to serve resources via the COR framework.

Since:
7.0
Note:
This interface is designed to be implemented by clients.

Method Summary
 DataSource newSource(java.lang.String mode, RenderEventRequest request)
          Returns a DataSource that renders content for a portlet.
 

Method Detail

newSource

DataSource newSource(java.lang.String mode,
                     RenderEventRequest request)
                     throws java.io.IOException
Returns a DataSource that renders content for a portlet.

Parameters:
mode - mode constant
request - the request that identifies the portlet and the runtime context
Returns:
an implementation of a DataSource. May be null in which case the implementation indicates that the URI will not be processed.
Throws:
java.io.IOException