public abstract class FactoryExtensionFinder extends Object
FactoryFinder
in the JSF API.
Factory instances are stored as attributes in the ExternalContext.getApplicationMap()
.Constructor and Description |
---|
FactoryExtensionFinder() |
Modifier and Type | Method and Description |
---|---|
static Object |
getFactory(Class<?> factoryClass)
Deprecated.
Call
getFactory(ExternalContext, Class) instead.
Returns the factory instance associated with the specified factory class from the external context associated with the current faces context. |
static Object |
getFactory(javax.faces.context.ExternalContext externalContext,
Class<?> factoryClass)
Returns the factory instance associated with the specified factory class from the specified external context.
|
abstract Object |
getFactoryInstance(Class<?> factoryClass)
Deprecated.
Call
getFactoryInstance(ExternalContext, Class) instead.
Returns the factory instance associated with the specified factory class from the external context associated with the current faces context. |
abstract Object |
getFactoryInstance(javax.faces.context.ExternalContext externalContext,
Class<?> factoryClass)
Returns the factory instance associated with the specified factory class from the specified external context.
|
static FactoryExtensionFinder |
getInstance()
Returns the thread-safe Singleton instance of the factory extension finder.
|
abstract void |
registerFactory(ConfiguredElement configuredFactoryExtension)
Deprecated.
Call
registerFactory(ExternalContext, ConfiguredElement) instead.
Registers the specified configured factory extension by storing it as an attribute in the |
abstract void |
registerFactory(javax.faces.context.ExternalContext externalContext,
ConfiguredElement configuredFactoryExtension)
Registers the specified configured factory extension by storing it as an attribute in the specified
ExternalContext.getApplicationMap() . |
abstract void |
releaseFactories(javax.faces.context.ExternalContext externalContext)
Releases all of the factories that were registered via the
registerFactory(ExternalContext,
ConfiguredElement) method. |
@Deprecated public static Object getFactory(Class<?> factoryClass)
getFactory(ExternalContext, Class)
instead.
Returns the factory instance associated with the specified factory class from the external context associated with the current faces context.
factoryClass
- The factory Class
.public static Object getFactory(javax.faces.context.ExternalContext externalContext, Class<?> factoryClass)
externalContext
- The external context associated with the current faces context.factoryClass
- The factory Class
.public static FactoryExtensionFinder getInstance() throws javax.faces.FacesException
javax.faces.FacesException
- When the factory extension finder cannot be discovered.@Deprecated public abstract Object getFactoryInstance(Class<?> factoryClass)
getFactoryInstance(ExternalContext, Class)
instead.
Returns the factory instance associated with the specified factory class from the external context associated with the current faces context.
factoryClass
- The factory Class
.public abstract Object getFactoryInstance(javax.faces.context.ExternalContext externalContext, Class<?> factoryClass)
externalContext
- The external context associated with the current faces context.factoryClass
- The factory Class
.@Deprecated public abstract void registerFactory(ConfiguredElement configuredFactoryExtension)
registerFactory(ExternalContext, ConfiguredElement)
instead.
Registers the specified configured factory extension by storing it as an attribute in the ExternalContext.getApplicationMap()
associated with the current faces context. Since this method is
designed to be called during application initialization, it is not guaranteed to be thread-safe.
configuredFactoryExtension
- The configured factory extension.public abstract void registerFactory(javax.faces.context.ExternalContext externalContext, ConfiguredElement configuredFactoryExtension)
ExternalContext.getApplicationMap()
. Since this method is designed to be called during application
initialization, it is not guaranteed to be thread-safe.externalContext
- The external context associated with the current faces context.configuredFactoryExtension
- The configured factory extension.public abstract void releaseFactories(javax.faces.context.ExternalContext externalContext)
registerFactory(ExternalContext,
ConfiguredElement)
method. It is designed to be called when a webapp context is destroyed.Copyright © 2018 Liferay, Inc.. All rights reserved.