@ProviderType
public abstract class BridgeFactoryFinder
extends java.lang.Object
FactoryFinder in the JSF API.
Factory instances are stored as attributes in the PortletContext.| Constructor and Description |
|---|
BridgeFactoryFinder() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
getFactory(java.lang.Class<?> factoryClass)
Deprecated.
Call
getFactory(PortletContext, Class) instead.
Returns the factory instance associated with the specified factory class from the portlet context associated with the current portlet request. |
static java.lang.Object |
getFactory(javax.portlet.PortletContext portletContext,
java.lang.Class<?> factoryClass)
Returns the factory instance associated with the specified factory class from the specified portlet context.
|
abstract java.lang.Object |
getFactoryInstance(java.lang.Class<?> factoryClass)
Deprecated.
Call
getFactory(PortletContext, Class) instead.
Returns the factory instance associated with the specified factory class from the portlet context associated with the current portlet request. |
abstract java.lang.Object |
getFactoryInstance(javax.portlet.PortletContext portletContext,
java.lang.Class<?> factoryClass)
Returns the factory instance associated with the specified factory class from the specified portlet context.
|
static BridgeFactoryFinder |
getInstance()
Returns the thread-safe Singleton instance of the bridge factory finder.
|
abstract void |
releaseFactories(javax.portlet.PortletContext portletContext)
Releases all of the factories that are associated with the specified portlet context.
|
@Deprecated public static java.lang.Object getFactory(java.lang.Class<?> factoryClass)
getFactory(PortletContext, Class) instead.
Returns the factory instance associated with the specified factory class from the portlet context associated with the current portlet request.
factoryClass - The factory Class.public static java.lang.Object getFactory(javax.portlet.PortletContext portletContext,
java.lang.Class<?> factoryClass)
portletContext - The portlet context associated with the current portlet request.factoryClass - The factory Class.public static BridgeFactoryFinder getInstance() throws javax.faces.FacesException
javax.faces.FacesException - When the factory extension finder cannot be discovered.@Deprecated public abstract java.lang.Object getFactoryInstance(java.lang.Class<?> factoryClass)
getFactory(PortletContext, Class) instead.
Returns the factory instance associated with the specified factory class from the portlet context associated with the current portlet request.
factoryClass - The factory Class.public abstract java.lang.Object getFactoryInstance(javax.portlet.PortletContext portletContext,
java.lang.Class<?> factoryClass)
portletContext - The portlet context associated with the current portlet request.factoryClass - The factory Class.public abstract void releaseFactories(javax.portlet.PortletContext portletContext)
portletContext - The portlet context associated with the portlet application that is being taken out of
service.Copyright © 2020 Liferay, Inc. All Rights Reserved.