com.liferay.faces.bridge.container
Class PortletContainerFactory
java.lang.Object
com.liferay.faces.bridge.container.PortletContainerFactory
- All Implemented Interfaces:
- FactoryWrapper<PortletContainerFactory>, javax.faces.FacesWrapper<PortletContainerFactory>
- Direct Known Subclasses:
- PortletContainerFactoryImpl
public abstract class PortletContainerFactory
- extends Object
- implements FactoryWrapper<PortletContainerFactory>
This abstract class provides a contract for defining a factory that knows how to create instances of type PortletContainer. It is inspired by the factory pattern found in the JSF API like FacesContextFactory and ExternalContextFactory. By implementing the
FacesWrapper interface, the class provides implementations with the opportunity to wrap another
factory (participate in a chain-of-responsibility pattern). If an implementation wraps a factory, then it should
provide a one-arg constructor so that the wrappable factory can be passed at initialization time.
- Author:
- Neil Griffin
|
Method Summary |
abstract PortletContainer |
getPortletContainer(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse,
javax.portlet.PortletContext portletContext,
BridgeConfig bridgeConfig)
Gets an instance of PortletContainer according to the type of portlet container (Liferay, etc.) that created in
the specified portletRequest. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletContainerFactory
public PortletContainerFactory()
getPortletContainer
public abstract PortletContainer getPortletContainer(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse,
javax.portlet.PortletContext portletContext,
BridgeConfig bridgeConfig)
- Gets an instance of PortletContainer according to the type of portlet container (Liferay, etc.) that created in
the specified portletRequest.
Copyright © 2014 Liferay, Inc.. All Rights Reserved.