- 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
}
public void unregisterMXBean(String name) { ResourcePublisher srv = Framework.getService(ResourcePublisher.class); if (srv == null) { return; } String cname = cnames.remove(name); if (cname != null) { srv.unregisterResource(name, cname); } }
@Override public void stop(ComponentContext context) { Framework.getService(ResourcePublisher.class).unregisterResource("connect-report", "connect-report"); }
@Override public void onApplicationStopped() { registry.remove(MetricRegistry.name("nuxeo", "audit", "size")); ResourcePublisher publisher = Framework.getService(ResourcePublisher.class); if (publisher != null) { publisher.unregisterResource("audit-bulker", "audit-bulker"); } stopped = true; try { thread.interrupt(); } finally { thread = null; } }