@Test public void testFriendlyNameStateManagedComponent() throws Exception { assertEquals("", friendlyName((StateManagedComponent) null)); NullService service = new NullService(); assertEquals("NullService", friendlyName((StateManagedComponent) service)); service.setUniqueId("testFriendlyNameService"); assertEquals("NullService(testFriendlyNameService)", friendlyName((StateManagedComponent) service)); }
public static String friendlyName(Service s) { if (s == null) { return ""; } return s.getClass().getSimpleName() + filterGuid(s.getUniqueId()); }
LoggingHelper { public static String friendlyName(Service s) { if (s == null) { return ""; } return s.getClass().getSimpleName() + filterGuid(s.getUniqueId()); } }
LoggingHelper { public static String friendlyName(Service s) { if (s == null) { return ""; } return s.getClass().getSimpleName() + filterGuid(s.getUniqueId()); }  }
LoggingHelper { public static String friendlyName(Service s) { if (s == null) { return ""; } return s.getClass().getSimpleName() + filterGuid(s.getUniqueId()); }  static void logDeprecation(boolean alreadyLogged, WarningLoggedCallback callback, String old, String replacement); static void logWarning(boolean alreadyLogged, WarningLoggedCallback callback, String text, Object...args); static String friendlyName(Service s); static String friendlyName(StateManagedComponent comp); static String friendlyName(ComponentLifecycle comp); }
LoggingHelper { public static String friendlyName(Service s) { if (s == null) { return ""; } return s.getClass().getSimpleName() + filterGuid(s.getUniqueId()); }  static void logDeprecation(boolean alreadyLogged, WarningLoggedCallback callback, String old, String replacement); static void logWarning(boolean alreadyLogged, WarningLoggedCallback callback, String text, Object...args); static String friendlyName(Service s); static String friendlyName(StateManagedComponent comp); static String friendlyName(ComponentLifecycle comp);  }