@Test public void shouldBeRegistered() { String listenerName = "storedRenditionsCleanup"; EventListenerDescriptor listener = eventService.getEventListener(listenerName); assertNotNull(listener); assertTrue(listener.acceptEvent(EVENT_NAME)); }
@Override public boolean acceptEvent(Event event) { return STORED_RENDITIONS_CLEANUP_EVENT.equals(event.getName()); }
StoredRenditionsCleanupListener implements PostCommitFilteringEventListener { @Override public boolean acceptEvent(Event event) { return STORED_RENDITIONS_CLEANUP_EVENT.equals(event.getName()); } }
StoredRenditionsCleanupListener implements PostCommitFilteringEventListener { @Override public boolean acceptEvent(Event event) { return STORED_RENDITIONS_CLEANUP_EVENT.equals(event.getName()); }  }
StoredRenditionsCleanupListener implements PostCommitFilteringEventListener { @Override public boolean acceptEvent(Event event) { return STORED_RENDITIONS_CLEANUP_EVENT.equals(event.getName()); }  @Override void handleEvent(EventBundle eventBundle); @Override boolean acceptEvent(Event event); }
StoredRenditionsCleanupListener implements PostCommitFilteringEventListener { @Override public boolean acceptEvent(Event event) { return STORED_RENDITIONS_CLEANUP_EVENT.equals(event.getName()); }  @Override void handleEvent(EventBundle eventBundle); @Override boolean acceptEvent(Event event); static final String STORED_RENDITIONS_CLEANUP_EVENT; }