本文整理了Java中org.springframework.web.context.WebApplicationContext.getDisplayName()
方法的一些代码示例,展示了WebApplicationContext.getDisplayName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebApplicationContext.getDisplayName()
方法的具体详情如下:
包路径:org.springframework.web.context.WebApplicationContext
类名称: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 ) {
内容来源于网络,如有侵权,请联系作者删除!