/** * @return an {@link Observable} of {@link RepositoryEvent}s sent by this {@link Repository}. */ default Observable<RepositoryEvent> notifications() { return service(Notifications.class) .ofType(RepositoryEvent.class) .filter(notification -> id().equals(notification.getRepositoryId())); }
public SnomedTraceabilityChangeProcessor(final IBranchPath branchPath, ObjectWriter objectWriter) { this.branchPath = checkNotNull(branchPath); this.objectWriter = checkNotNull(objectWriter); this.index = ApplicationContext.getServiceForClass(RepositoryManager.class).get(SnomedDatastoreActivator.REPOSITORY_UUID).service(RevisionIndex.class); this.collectSystemChanges = collectSystemChanges(branchPath.getPath()); this.descriptionLookupService = new SnomedDescriptionLookupService(); }