|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.bean.BaseFacesBean
com.webmethods.caf.faces.bean.BaseApplicationBean
public class BaseApplicationBean
Base class for web and portlet application bean. Provides access to application resources.
Client applications should subclass this base class.
Field Summary | |
---|---|
protected WmJournalLogger |
m_JournalLogger
Reference to the logger which is used to log messages in the caf.log file. |
protected WmLoggerFactory |
m_LoggerFactory
The logger factory. |
protected 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. |
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesBean |
---|
DATA_BINDING_CLIENTS, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders |
Constructor Summary | |
---|---|
BaseApplicationBean()
Default Constructor |
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesBean |
---|
createMethodBinding, createValueBinding, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String m_sCategory
protected String m_sSubCat
protected LoggerFactoryContext m_LoggerFactoryContext
protected WmLoggerFactory m_LoggerFactory
protected WmJournalLogger m_JournalLogger
Constructor Detail |
---|
public BaseApplicationBean()
Method Detail |
---|
public IContentProvider getApplicationResources()
BaseApplicationBean.getApplicationResourcesProvider()
public ResourceBundleContentProvider getApplicationResourcesProvider()
ResourceBundleContentProvider
for this web application for the current locale.
The locale is specified by UIViewRoot
.
The resource bundle base name is specified in Application
.
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 WmJournalLogger getJournalLogger()
public void reloadJournalLogger()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |