Package org.dspace.event
Class ConsumerProfile
- java.lang.Object
-
- org.dspace.event.ConsumerProfile
-
public class ConsumerProfile extends Object
An instance of this class contains the configuration profile of a specific, named Consumer, in the context of a specific Dispatcher. This includes the name, the class to instantiate and event filters. Note that all characteristics are "global" and the same for all dispatchers.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsumergetConsumer()List<int[]>getFilters()StringgetName()static ConsumerProfilemakeConsumerProfile(String name)Factory method, create new profile from configuration.
-
-
-
Method Detail
-
makeConsumerProfile
public static ConsumerProfile makeConsumerProfile(String name) throws IllegalArgumentException, ClassNotFoundException, InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException
Factory method, create new profile from configuration.- Parameters:
name- configuration name of the consumer profile- Returns:
- a new ConsumerProfile; never null.
- Throws:
IllegalArgumentException- if no class or no filters configured for the specified consumerClassNotFoundException- passed through.InstantiationException- passed through.IllegalAccessException- passed through.NoSuchMethodException- passed through.InvocationTargetException- passed through.
-
getConsumer
public Consumer getConsumer()
-
getFilters
public List<int[]> getFilters()
-
getName
public String getName()
-
-