本文整理了Java中com.liferay.faces.util.logging.Logger.info()
方法的一些代码示例,展示了Logger.info()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.info()
方法的具体详情如下:
包路径:com.liferay.faces.util.logging.Logger
类名称:Logger
方法名:info
暂无
代码示例来源:origin: liferay/liferay-faces
public void info(Object msg) {
logger.info(msg.toString());
}
代码示例来源:origin: liferay/liferay-faces
public void info(Object msg, Throwable t) {
logger.info(msg.toString(), t);
}
代码示例来源:origin: liferay/liferay-faces
public void info(Throwable t) {
logger.info(t.getMessage());
}
代码示例来源:origin: liferay/liferay-faces
/**
* This method provides the ability to discover the Mojarra InjectionProvider at startup.
*/
public void contextInitialized(ServletContextEvent servletContextEvent) {
ServletContext servletContext = servletContextEvent.getServletContext();
if (servletContext.getAttribute(BridgeSessionListener.class.getName()) == null) {
logger.info("Context initialized for contextPath=[{0}]", servletContext.getContextPath());
// Prevent multiple-instantiation of this listener.
servletContext.setAttribute(BridgeSessionListener.class.getName(), Boolean.TRUE);
firstInstance = true;
}
else {
logger.debug("Preventing multiple instantiation for contextPath=[{0}]", servletContext.getContextPath());
}
}
代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl
/**
* This method provides the ability to discover the Mojarra InjectionProvider at startup.
*/
public void contextInitialized(ServletContextEvent servletContextEvent) {
ServletContext servletContext = servletContextEvent.getServletContext();
if (servletContext.getAttribute(BridgeSessionListener.class.getName()) == null) {
logger.info("Context initialized for contextPath=[{0}]", servletContext.getContextPath());
// Prevent multiple-instantiation of this listener.
servletContext.setAttribute(BridgeSessionListener.class.getName(), Boolean.TRUE);
firstInstance = true;
}
else {
logger.debug("Preventing multiple instantiation for contextPath=[{0}]", servletContext.getContextPath());
}
}
代码示例来源:origin: liferay/liferay-faces
/**
* The purpose of overriding this method is to work-around a JSF 1.2 dependency in the TCK. Once the
* TestSuiteViewHandlerImpl is changed to be a subclass of ViewDeclarationLanguage this can be removed.
*/
@Override
public void renderView(FacesContext facesContext, UIViewRoot viewToRender) throws IOException, FacesException {
try {
super.renderView(facesContext, viewToRender);
}
catch (FacesException e) {
String tckRequestAttribute = (String) facesContext.getExternalContext().getRequestMap().get(
"javax.portlet.faces.tck.testRenderPolicyPass");
if (tckRequestAttribute != null) {
logger.info("Working around JSF 1.2 dependency in the TCK");
ViewDeclarationLanguage viewDeclarationLanguage = getViewDeclarationLanguage(facesContext,
viewToRender.getViewId());
viewDeclarationLanguage.renderView(facesContext, viewToRender);
}
else {
throw e;
}
}
}
代码示例来源:origin: liferay/liferay-faces
logger.info("Missing file: " + filename);
代码示例来源:origin: com.liferay.faces.demo/com.liferay.faces.demo.showcase.common
logger.info("Did not find file: " + filename);
内容来源于网络,如有侵权,请联系作者删除!