|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.faces.bridge.BridgeFactoryFinder
public abstract class BridgeFactoryFinder
This class provides a factory lookup mechanism similar to the FactoryFinder in the JSF API.
Factory instances are stored as attributes in the PortletContext.
| Constructor Summary | |
|---|---|
BridgeFactoryFinder()
|
|
| Method Summary | |
|---|---|
static Object |
getFactory(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 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(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 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BridgeFactoryFinder()
| Method Detail |
|---|
@Deprecated public static Object getFactory(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 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.@Deprecated public abstract Object getFactoryInstance(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 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||