Package org.kuali.rice.kcb.service.impl
Class MessageDelivererRegistryServiceImpl
java.lang.Object
org.kuali.rice.kcb.service.impl.MessageDelivererRegistryServiceImpl
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidImplements by constructing instances of each registered class and adding to an ArrayList that gets passed back to the calling method.This service method is responsible for retrieving all MessageDeliverer Types names.getDeliverer(MessageDelivery messageDelivery) Implements by calling getDelivererByName for the delivery type name within the messageDelivery object.getDelivererByName(String messageDelivererName) Implements by doing a key lookup in the hashmap that acts as the deliverer plugin registry.
-
Constructor Details
-
MessageDelivererRegistryServiceImpl
public MessageDelivererRegistryServiceImpl()
-
-
Method Details
-
getAllDelivererTypes
Description copied from interface:MessageDelivererRegistryServiceThis service method is responsible for retrieving all MessageDeliverer Types names.- Specified by:
getAllDelivererTypesin interfaceMessageDelivererRegistryAPI- Specified by:
getAllDelivererTypesin interfaceMessageDelivererRegistryService- Returns:
- Collection of deliverer type names
-
getAllDeliverers
Implements by constructing instances of each registered class and adding to an ArrayList that gets passed back to the calling method.- Specified by:
getAllDeliverersin interfaceMessageDelivererRegistryService- Returns:
- Collection of MessageDeliverer objects
-
getDeliverer
Implements by calling getDelivererByName for the delivery type name within the messageDelivery object.- Specified by:
getDelivererin interfaceMessageDelivererRegistryService- Parameters:
messageDelivery-- Returns:
- MessageDeliverer or null if not found
-
getDelivererByName
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:
getDelivererByNamein interfaceMessageDelivererRegistryService- Parameters:
messageDelivererName-- Returns:
- MessageDeliverer or null if not found
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-