- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {SimpleDateFormat s =
String pattern;new SimpleDateFormat(pattern)
String template;Locale locale;new SimpleDateFormat(template, locale)
new SimpleDateFormat()
- Smart code suggestions by Codota
}
if (delegate != null && BrooklynWebConfig.hasNoSecurityOptions(mgmt.getConfig())) { log.debug("{} refusing to change from {}: No security provider set in reloaded properties.", this, delegate);
private static Server startServer(ManagementContext mgmt, ContextHandler context, String summary, boolean disableHighAvailability) { // TODO this repeats code in BrooklynLauncher / WebServer. should merge the two paths. boolean secure = mgmt != null && !BrooklynWebConfig.hasNoSecurityOptions(mgmt.getConfig()); if (secure) { log.debug("Detected security configured, launching server on all network interfaces"); } else { log.debug("Detected no security configured, launching server on loopback (localhost) network interface only"); if (mgmt!=null) { log.debug("Detected no security configured, running on loopback; disabling authentication"); ((BrooklynProperties)mgmt.getConfig()).put(BrooklynWebConfig.SECURITY_PROVIDER_CLASSNAME, AnyoneSecurityProvider.class.getName()); } } if (mgmt != null && disableHighAvailability) mgmt.getHighAvailabilityManager().disabled(); InetSocketAddress bindLocation = new InetSocketAddress( secure ? Networking.ANY_NIC : Networking.LOOPBACK, Networking.nextAvailablePort(FAVOURITE_PORT)); return startServer(mgmt, context, summary, bindLocation); }