@ProviderType public abstract class BridgeFactoryFinder extends 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 Object |
getFactory(javax.portlet.PortletContext portletContext,
Class<?> factoryClass)
Returns the factory instance associated with the specified factory class from the specified portlet context.
|
abstract Object |
getFactoryInstance(javax.portlet.PortletContext portletContext,
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.
|
public static Object getFactory(javax.portlet.PortletContext portletContext, 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.public abstract Object getFactoryInstance(javax.portlet.PortletContext portletContext, 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 © 2022 Liferay, Inc. All rights reserved.