public class BaseApplicationBean extends BaseFacesBean
Base class for web and portlet application bean. Provides access to application resources.
Client applications should subclass this base class.
Modifier and Type | Field and Description |
---|---|
protected com.webmethods.sc.logging.log4j2.logger.WmJournalLogger |
m_JournalLogger
Reference to the logger which is used to log messages in the caf.log file.
|
protected com.webmethods.sc.logging.log4j2.logger.WmLoggerFactory |
m_LoggerFactory
The logger factory.
|
protected com.webmethods.sc.logging.log4j2.logger.LoggerFactoryContext |
m_LoggerFactoryContext
The logger context.
|
protected String |
m_sCategory
The text used in the output logs as the category.
|
protected String |
m_sSubCat
The text used in the output logs as the sub category.
|
DATA_BINDING_CLIENTS, EMPTY_RESOURCES, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
Constructor and Description |
---|
BaseApplicationBean()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
IContentProvider |
getApplicationResources()
Deprecated.
|
ResourceBundleContentProvider |
getApplicationResourcesProvider()
Returns
ResourceBundleContentProvider for this web application for the current locale. |
String |
getCategoryName()
Get the String value for the Logging Category.
|
com.webmethods.sc.logging.log4j2.logger.WmJournalLogger |
getJournalLogger()
Return a logger that will allow you to log messages to the caf.log file.
|
String |
getSubCategoryName()
Get the String value for the Logging Sub Category.
|
void |
reloadJournalLogger()
Releases this copy of the Journal Logger.
|
void |
setCategoryName(String sValue)
Set the
String value for the Logging Category. |
protected void |
setJLogFactoryContext()
Create the logger context from settings in the resource bundle.
|
protected void |
setLogger()
Initialized a logger factory with the factory context.
|
void |
setSubCategoryName(String sValue)
Set the String value for the Logging Sub Category.
|
createMethodBinding, createMethodExpression, createValueBinding, createValueExpression, createValueExpression, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
protected String m_sCategory
protected String m_sSubCat
protected com.webmethods.sc.logging.log4j2.logger.LoggerFactoryContext m_LoggerFactoryContext
protected com.webmethods.sc.logging.log4j2.logger.WmLoggerFactory m_LoggerFactory
protected com.webmethods.sc.logging.log4j2.logger.WmJournalLogger m_JournalLogger
@Deprecated public IContentProvider getApplicationResources()
public ResourceBundleContentProvider getApplicationResourcesProvider()
ResourceBundleContentProvider
for this web application for the current locale.
The locale is specified by UIViewRoot.getLocale()
.
The resource bundle base name is specified in Application.getMessageBundle()
.
If resource bundle cannot be loaded the returned provider is empty.protected void setJLogFactoryContext()
protected void setLogger()
public void setCategoryName(String sValue)
String
value for the Logging Category.sValue
- The text used in the output logs as the category.public String getCategoryName()
public void setSubCategoryName(String sValue)
sValue
- The text used in the output logs as the sub category.public String getSubCategoryName()
public com.webmethods.sc.logging.log4j2.logger.WmJournalLogger getJournalLogger()
public void reloadJournalLogger()