com.liferay.faces.util.logging.Logger.info()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(271)

本文整理了Java中com.liferay.faces.util.logging.Logger.info()方法的一些代码示例,展示了Logger.info()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.info()方法的具体详情如下:
包路径:com.liferay.faces.util.logging.Logger
类名称:Logger
方法名:info

Logger.info介绍

暂无

代码示例

代码示例来源:origin: liferay/liferay-faces

  1. public void info(Object msg) {
  2. logger.info(msg.toString());
  3. }

代码示例来源:origin: liferay/liferay-faces

  1. public void info(Object msg, Throwable t) {
  2. logger.info(msg.toString(), t);
  3. }

代码示例来源:origin: liferay/liferay-faces

  1. public void info(Throwable t) {
  2. logger.info(t.getMessage());
  3. }

代码示例来源:origin: liferay/liferay-faces

  1. /**
  2. * This method provides the ability to discover the Mojarra InjectionProvider at startup.
  3. */
  4. public void contextInitialized(ServletContextEvent servletContextEvent) {
  5. ServletContext servletContext = servletContextEvent.getServletContext();
  6. if (servletContext.getAttribute(BridgeSessionListener.class.getName()) == null) {
  7. logger.info("Context initialized for contextPath=[{0}]", servletContext.getContextPath());
  8. // Prevent multiple-instantiation of this listener.
  9. servletContext.setAttribute(BridgeSessionListener.class.getName(), Boolean.TRUE);
  10. firstInstance = true;
  11. }
  12. else {
  13. logger.debug("Preventing multiple instantiation for contextPath=[{0}]", servletContext.getContextPath());
  14. }
  15. }

代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl

  1. /**
  2. * This method provides the ability to discover the Mojarra InjectionProvider at startup.
  3. */
  4. public void contextInitialized(ServletContextEvent servletContextEvent) {
  5. ServletContext servletContext = servletContextEvent.getServletContext();
  6. if (servletContext.getAttribute(BridgeSessionListener.class.getName()) == null) {
  7. logger.info("Context initialized for contextPath=[{0}]", servletContext.getContextPath());
  8. // Prevent multiple-instantiation of this listener.
  9. servletContext.setAttribute(BridgeSessionListener.class.getName(), Boolean.TRUE);
  10. firstInstance = true;
  11. }
  12. else {
  13. logger.debug("Preventing multiple instantiation for contextPath=[{0}]", servletContext.getContextPath());
  14. }
  15. }

代码示例来源:origin: liferay/liferay-faces

  1. /**
  2. * The purpose of overriding this method is to work-around a JSF 1.2 dependency in the TCK. Once the
  3. * TestSuiteViewHandlerImpl is changed to be a subclass of ViewDeclarationLanguage this can be removed.
  4. */
  5. @Override
  6. public void renderView(FacesContext facesContext, UIViewRoot viewToRender) throws IOException, FacesException {
  7. try {
  8. super.renderView(facesContext, viewToRender);
  9. }
  10. catch (FacesException e) {
  11. String tckRequestAttribute = (String) facesContext.getExternalContext().getRequestMap().get(
  12. "javax.portlet.faces.tck.testRenderPolicyPass");
  13. if (tckRequestAttribute != null) {
  14. logger.info("Working around JSF 1.2 dependency in the TCK");
  15. ViewDeclarationLanguage viewDeclarationLanguage = getViewDeclarationLanguage(facesContext,
  16. viewToRender.getViewId());
  17. viewDeclarationLanguage.renderView(facesContext, viewToRender);
  18. }
  19. else {
  20. throw e;
  21. }
  22. }
  23. }

代码示例来源:origin: liferay/liferay-faces

  1. logger.info("Missing file: " + filename);

代码示例来源:origin: com.liferay.faces.demo/com.liferay.faces.demo.showcase.common

  1. logger.info("Did not find file: " + filename);

相关文章