@Test public void testGetTrackersForCore() { Collection<Tracker> trackersForCore = reg.getTrackersForCore(CORE_NAME); assertNotNull(trackersForCore); assertFalse(trackersForCore.isEmpty()); assertTrue(trackersForCore.contains(aclTracker)); assertTrue(trackersForCore.contains(contentTracker)); assertTrue(trackersForCore.contains(modelTracker)); assertTrue(trackersForCore.contains(metadataTracker)); trackersForCore = reg.getTrackersForCore(NOT_A_CORE_NAME); assertTrue(trackersForCore.isEmpty()); }
public Collection<Tracker> getTrackersForCore(String coreName) { ConcurrentHashMap<Class<? extends Tracker>, Tracker> coreTrackers = this.trackers.get(coreName); return ((coreTrackers == null) ? Collections.emptyList() : coreTrackers.values()); }
TrackerRegistry { public Collection<Tracker> getTrackersForCore(String coreName) { ConcurrentHashMap<Class<? extends Tracker>, Tracker> coreTrackers = this.trackers.get(coreName); return ((coreTrackers == null) ? Collections.emptyList() : coreTrackers.values()); } }
TrackerRegistry { public Collection<Tracker> getTrackersForCore(String coreName) { ConcurrentHashMap<Class<? extends Tracker>, Tracker> coreTrackers = this.trackers.get(coreName); return ((coreTrackers == null) ? Collections.emptyList() : coreTrackers.values()); }  }
TrackerRegistry { public Collection<Tracker> getTrackersForCore(String coreName) { ConcurrentHashMap<Class<? extends Tracker>, Tracker> coreTrackers = this.trackers.get(coreName); return ((coreTrackers == null) ? Collections.emptyList() : coreTrackers.values()); }  Set<String> getCoreNames(); Collection<Tracker> getTrackersForCore(String coreName); boolean hasTrackersForCore(String coreName); @SuppressWarnings("unchecked") T getTrackerForCore(String coreName, Class<T> trackerClass); synchronized void register(String coreName, Tracker tracker); boolean removeTrackersForCore(String coreName); ModelTracker getModelTracker(); void setModelTracker(ModelTracker modelTracker); }
TrackerRegistry { public Collection<Tracker> getTrackersForCore(String coreName) { ConcurrentHashMap<Class<? extends Tracker>, Tracker> coreTrackers = this.trackers.get(coreName); return ((coreTrackers == null) ? Collections.emptyList() : coreTrackers.values()); }  Set<String> getCoreNames(); Collection<Tracker> getTrackersForCore(String coreName); boolean hasTrackersForCore(String coreName); @SuppressWarnings("unchecked") T getTrackerForCore(String coreName, Class<T> trackerClass); synchronized void register(String coreName, Tracker tracker); boolean removeTrackersForCore(String coreName); ModelTracker getModelTracker(); void setModelTracker(ModelTracker modelTracker);  }