@Test @DisplayName("provide default event filter") void provideDefaultEventFilter() { EventFilter filter = repository.eventFilter(); assertNotNull(filter); }
@SPI @Pure public EventFilter eventFilter() { EntityClass<E> entityClass = entityModelClass(); return EntityStateChangedFilter.forType(entityClass); }
Repository implements ContextAware, Closeable, Logging { @SPI @Pure public EventFilter eventFilter() { EntityClass<E> entityClass = entityModelClass(); return EntityStateChangedFilter.forType(entityClass); } }
Repository implements ContextAware, Closeable, Logging { @SPI @Pure public EventFilter eventFilter() { EntityClass<E> entityClass = entityModelClass(); return EntityStateChangedFilter.forType(entityClass); } protected  Repository(); }
Repository implements ContextAware, Closeable, Logging { @SPI @Pure public EventFilter eventFilter() { EntityClass<E> entityClass = entityModelClass(); return EntityStateChangedFilter.forType(entityClass); } protected  Repository(); abstract E create(I id); abstract Optional<E> find(I id); Iterator<E> iterator(Predicate<E> filter); Iterator<I> index(); @Internal EntityClass<E> entityModelClass(); @SuppressWarnings("unchecked") // The cast is ensured by generic parameters of the repository. final Class<I> idClass(); final Class<E> entityClass(); final TypeUrl entityStateType(); @OverridingMethodsMustInvokeSuper @Override @Internal void registerWith(BoundedContext context); @Override boolean isRegistered(); @SuppressWarnings("NoopMethodInAbstractClass") // see Javadoc @OverridingMethodsMustInvokeSuper void onRegistered(); @VisibleForTesting final boolean storageAssigned(); @Override @OverridingMethodsMustInvokeSuper void close(); @Override final boolean isOpen(); @Internal EntityLifecycle lifecycleOf(I id); @SPI @Pure EventFilter eventFilter(); }
Repository implements ContextAware, Closeable, Logging { @SPI @Pure public EventFilter eventFilter() { EntityClass<E> entityClass = entityModelClass(); return EntityStateChangedFilter.forType(entityClass); } protected  Repository(); abstract E create(I id); abstract Optional<E> find(I id); Iterator<E> iterator(Predicate<E> filter); Iterator<I> index(); @Internal EntityClass<E> entityModelClass(); @SuppressWarnings("unchecked") // The cast is ensured by generic parameters of the repository. final Class<I> idClass(); final Class<E> entityClass(); final TypeUrl entityStateType(); @OverridingMethodsMustInvokeSuper @Override @Internal void registerWith(BoundedContext context); @Override boolean isRegistered(); @SuppressWarnings("NoopMethodInAbstractClass") // see Javadoc @OverridingMethodsMustInvokeSuper void onRegistered(); @VisibleForTesting final boolean storageAssigned(); @Override @OverridingMethodsMustInvokeSuper void close(); @Override final boolean isOpen(); @Internal EntityLifecycle lifecycleOf(I id); @SPI @Pure EventFilter eventFilter();  }