org.springframework.web.context.WebApplicationContext.getDisplayName()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(97)

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

WebApplicationContext.getDisplayName介绍

暂无

代码示例

代码示例来源:origin: org.eagle-i/eagle-i-search-gwt

private void debug(final WebApplicationContext ctx) {
  // DEBUG
  if ( DEBUG ) {
    logger.debug("SearchServlet: Context Display name = "
        + ctx.getDisplayName());
    logger.debug("SearchServlet: Context ID = " + ctx.getId());
    if (ctx.getParent() == null) {
      logger.debug("SearchServlet: Context Parent is null.");
    } else {
      logger.debug("SearchServlet: Context Parent Display name = "
          + ctx.getParent().getDisplayName());
    }
    if (ctx.getServletContext() == null) {
      logger.debug("SearchServlet: ServletContext is null.");
    } else {
      logger.debug("SearchServlet: ServletContext path = "
          + ctx.getServletContext().getContextPath());
      logger.debug("SearchServlet: ServletContext context name = "
          + ctx.getServletContext().getServletContextName());
    }
  }
  // DEBUG
}

代码示例来源:origin: pl.matisoft/spring-soy-view

@Override
public void resolveData(final HttpServletRequest request, final HttpServletResponse response, final Map<String, ? extends Object> model, final SoyMapData root) {
  final WebApplicationContext context = getWebApplicationContext();
  if (context.getApplicationName() != null) {
    root.put(prefix + "applicationName", context.getApplicationName());
  }
  if (context.getDisplayName() != null) {
    root.put(prefix + "displayName", context.getDisplayName());
  }
  root.put(prefix + "startUp", DateFormat.getDateTimeInstance().format(new Date(context.getStartupDate())));
  if (context.getId() != null) {
    root.put(prefix + "id", context.getId());
  }
}

代码示例来源:origin: org.eagle-i/eagle-i-search-gwt

logger.debug( "InstanceServlet: Context Display name = " + ctx.getDisplayName() );
logger.debug( "InstanceServlet: Context ID = " + ctx.getId() );
if ( ctx.getParent() == null ) {

相关文章