public String getApplicationName() { return applicationContext.getApplicationName(); } public String getDisplayName() {
@Override public String getApplicationName() { return wrapped.getApplicationName(); }
public static String getApplicationName() { return context.getApplicationName(); }
public static String getApplicationName() { return appContext.getApplicationName(); }
private String getAppName(ApplicationContext appContext) { String appName = appContext.getApplicationName(); if (appName == null || appName.isEmpty()) { return ""; } return appName.replace('/', ' ').replace('\\', ' ').trim().replace(' ', '-'); }
private String getAppName(ApplicationContext appContext) { String appName = appContext.getApplicationName(); if (appName == null || appName.isEmpty()) { return ""; } return appName.replace('/', ' ').replace('\\', ' ').trim().replace(' ', '-'); }
@Override public String getApplicationName() { return applicationContext.getApplicationName(); }
public static String getApplicationName() { return getApplicationContext().getApplicationName(); }
public static String getAppName(final String defaultValue) { String retValue = null; final ApplicationConfig application = getBean(ApplicationConfig.class, null); if (application != null) { retValue = application.getName(); } if (StringUtils.isBlank(retValue) && applicationContext != null) { retValue = applicationContext.getApplicationName(); } if (StringUtils.isBlank(retValue)) { retValue = defaultValue; } return retValue; } }
public static void debug(ApplicationContext ctx) { logger.debug("------------------------ Spring Context ------------------------------"); logger.debug("Id: [{}]", ctx.getId()); logger.debug("Display Name: [{}]", ctx.getDisplayName()); logger.debug("Application Name: [{}]", ctx.getApplicationName()); logger.debug("----------------------------------------------------------------------"); List<String> names = Arrays.asList(BeanFactoryUtils.beanNamesIncludingAncestors(ctx)); List<String> columns = Arrays.asList("Name", "Type", "Hashcode"); List<Object[]> rows = new ArrayList<Object[]>(); Collections.sort(names); for (String name : names) { Object bean = ctx.getBean(name); String instance = (bean == null) ? NullUtils.NULL : bean.getClass().getSimpleName(); String hashcode = (bean == null) ? NullUtils.NULL : Integer.toHexString(bean.hashCode()); Object[] row = { name, instance, hashcode }; rows.add(row); } LoggerUtils.logTable(columns, rows, LoggerLevel.DEBUG, logger, true); logger.debug("----------------------------------------------------------------------"); }
@Override public String toString() { if (this.startupFailure != null) { return "Unstarted application context " + this.applicationContextType.getName() + "[startupFailure=" + this.startupFailure.getClass().getName() + "]"; } ToStringCreator builder = new ToStringCreator(this.applicationContext) .append("id", this.applicationContext.getId()) .append("applicationName", this.applicationContext.getApplicationName()) .append("beanDefinitionCount", this.applicationContext.getBeanDefinitionCount()); return "Started application " + builder; }
while (current != null) { log.debug("Spring Context: {}", current.toString()); log.debug("Spring Context Name: {}", current.getApplicationName()); log.debug("Spring Context Parent: {}", current.getParent()); log.debug("");
String context = platformContext.getApplicationName(); String serverName = "http://" + host + ":" + port + "/" + context; String serverUrl = "http://" + host;
pluginTimeout); } else { log.trace("Using context: " + context.getApplicationName()); try { client =
pluginTimeout); } else { log.trace("Using context: " + context.getApplicationName()); try { client =
existingModule = new org.ikasan.topology.model.Module(module.getName(), platformContext.getApplicationName(), module.getDescription(), module.getVersion(), null, null); if (existingServer.isPresent())