Class MessageDelivererRegistryServiceImpl

java.lang.Object
org.kuali.rice.kcb.service.impl.MessageDelivererRegistryServiceImpl
All Implemented Interfaces:
org.kuali.rice.kcb.api.service.MessageDelivererRegistryAPI, MessageDelivererRegistryService, org.springframework.beans.factory.InitializingBean

public class MessageDelivererRegistryServiceImpl extends Object implements MessageDelivererRegistryService, org.springframework.beans.factory.InitializingBean
MessageDelivererRegistryService implementation - for now we use a HashMap to do this registration, in the future we'll use resource loading.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • MessageDelivererRegistryServiceImpl

      public MessageDelivererRegistryServiceImpl()
  • Method Details

    • getAllDelivererTypes

      public Collection<String> getAllDelivererTypes()
      Description copied from interface: MessageDelivererRegistryService
      This service method is responsible for retrieving all MessageDeliverer Types names.
      Specified by:
      getAllDelivererTypes in interface org.kuali.rice.kcb.api.service.MessageDelivererRegistryAPI
      Specified by:
      getAllDelivererTypes in interface MessageDelivererRegistryService
      Returns:
      Collection of deliverer type names
    • getAllDeliverers

      public Collection<MessageDeliverer> getAllDeliverers()
      Implements by constructing instances of each registered class and adding to an ArrayList that gets passed back to the calling method.
      Specified by:
      getAllDeliverers in interface MessageDelivererRegistryService
      Returns:
      Collection of MessageDeliverer objects
    • getDeliverer

      public MessageDeliverer getDeliverer(MessageDelivery messageDelivery)
      Implements by calling getDelivererByName for the delivery type name within the messageDelivery object.
      Specified by:
      getDeliverer in interface MessageDelivererRegistryService
      Parameters:
      messageDelivery -
      Returns:
      MessageDeliverer or null if not found
    • getDelivererByName

      public MessageDeliverer getDelivererByName(String messageDelivererName)
      Implements by doing a key lookup in the hashmap that acts as the deliverer plugin registry. The deliverer name is the key in the hashmap for all registered deliverers.
      Specified by:
      getDelivererByName in interface MessageDelivererRegistryService
      Parameters:
      messageDelivererName -
      Returns:
      MessageDeliverer or null if not found
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean