/** * Returns application name that is the name of the main class derived from runtime stack. * * @return application name that is the name of the main class derived from runtime stack. */ static String appNameFromRuntime() { Class<?> main = mainClass(); String name = appNameFromJar(main); return name != null ? name : appNameFromClassName(main); }
public Builder defaultName() { return name(ApplicationIntrospector.appNameFromRuntime()); }
/** * Returns application name that is the name of the main class derived from runtime stack. * * @return application name that is the name of the main class derived from runtime stack. */ static String appNameFromRuntime() { Class<?> main = mainClass(); String name = appNameFromJar(main); return name != null ? name : appNameFromClassName(main); }
public Builder defaultName() { return name(ApplicationIntrospector.appNameFromRuntime()); }