class JpaObjectsToSearchService implements ApplicationListener<AcmDatabaseChangesEvent> {

    @Override
    public void onApplicationEvent(AcmDatabaseChangesEvent databaseChangesEvent)
    {
        updateObjectsInSolr(databaseChangesEvent.getObjectChangelist());
    }

}