public class IltFacesDefaultContext extends IlpDefaultContext
IltFacesDefaultContext
extends IlpDefaultContext
to adapt the synchronization strategy and URL access service to the
JavaServer Faces (JSF) environment.Constructor and Description |
---|
IltFacesDefaultContext()
The default constructor.
|
IltFacesDefaultContext(Locale locale)
Constructor with a
Locale parameter. |
IltFacesDefaultContext(Locale locale,
Object context)
A constructor with
Locale and context
(ServletContext , FacesContext , or
PortletContext ). |
Modifier and Type | Method and Description |
---|---|
void |
setDefault(boolean isDefaultContext)
Specifies whether this context should be set as the default context
for this application, meaning that
IlpSystem.GetDefaultContext()
will return this context instance. |
addService, createBlinkingManager, createClassLoaderService, createClassManager, createDataSourceManager, createImageRepository, createInteractorManager, createMonitoringService, createSynchronizationStrategy, createTypeConverter, createURLAccessService, getBlinkingManager, getClassLoaderService, getClassManager, getDataSourceManager, getDocumentBase, getImageRepository, getInteractorManager, getLocale, getMonitoringService, getProperties, getProperty, getService, getServices, getStyleManager, getSynchronizationStrategy, getTypeConverter, getURLAccessService, removeService, setDeploymentFile, setDocumentBase, setLocale, setProperty
public IltFacesDefaultContext()
The locale that is obtained is the default locale. See
IlvLocaleUtil.getServerLocale()
for more information.
public IltFacesDefaultContext(Locale locale)
Locale
parameter.
The default IlpURLAccessService
instance is initialized
with the web application set as the document base.
This method uses FacesContext
to statically retrieve the
context, it should only be used within JavaServer Faces environment.
locale
- The locale to be used in this context. If the locale is
null
, the default locale is used.
See Locale.getDefault()
for more information.IlpDefaultContext.IlpDefaultContext(Locale)
public IltFacesDefaultContext(Locale locale, Object context)
Locale
and context
(ServletContext
, FacesContext
, or
PortletContext
).
The default IlpURLAccessService
instance is initialized
with the web application set as the document base.
locale
- The locale to be used in this context. If the locale is
null
, the default locale is used.
See Locale.getDefault()
for more information.context
- The Web application context used to initialize the code
base. It can be an instance of ServletContext
,
FacesContext
or PortletContext
.IllegalArgumentException
- if context is null
.IlpDefaultContext.IlpDefaultContext(Locale)
public void setDefault(boolean isDefaultContext)
IlpSystem.GetDefaultContext()
will return this context instance.
This is particularly useful when declaring this context as a JavaServer Faces managed bean:
<managed-bean> <managed-bean-name>defContext</managed-bean-name> <managed-bean-class>ilog.tgo.faces.service.IltFacesDefaultContext</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> <managed-property> <property-name>default</property-name> <value>true</value> </managed-property> </managed-bean>
isDefaultContext
- If true
, this context becomes
the default TGO context. If false
nothing happens.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.