Sha256: ab6c7ad912e1c7cd065be40205463d7c4b72847e200c5ca1d40417e646d8658c

Contents?: true

Size: 1.15 KB

Versions: 3

Compression:

Stored size: 1.15 KB

Contents

# frozen_string_literal: true
module Hyrax
  # @note
  #    Did you encounter an exception similar to the following:
  #
  #    "A copy of Hyrax::Listeners::ObjectLifecycleListener has been removed from the module tree but is still active!"
  #
  #    You may need to register a listener as autoload.  See
  #    ./app/services/hyrax/listeners.rb
  #
  # When an instance of a listener class is registered with
  # Dry::Events::Publisher#subscribe, its method(s) will be called when a event
  # is published that maps to the method name using the pattern:
  #   on_event_fired => 'event.fired'
  #
  # @see https://dry-rb.org/gems/dry-events/0.2/#event-listeners
  module Listeners
    extend ActiveSupport::Autoload

    autoload :ACLIndexListener
    autoload :ActiveFedoraACLIndexListener
    autoload :BatchNotificationListener
    autoload :FileMetadataListener
    autoload :FileSetLifecycleListener
    autoload :FileSetLifecycleNotificationListener
    autoload :MemberCleanupListener
    autoload :MetadataIndexListener
    autoload :ObjectLifecycleListener
    autoload :ProxyDepositListener
    autoload :TrophyCleanupListener
    autoload :WorkflowListener
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/services/hyrax/listeners.rb
hyrax-5.0.0 app/services/hyrax/listeners.rb
hyrax-5.0.0.rc3 app/services/hyrax/listeners.rb