Package org.dspace.event
Class ConsumerProfile
java.lang.Object
org.dspace.event.ConsumerProfile
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
Modifier and TypeMethodDescriptionList<int[]>getName()static ConsumerProfilemakeConsumerProfile(String name) Factory method, create new profile from configuration.
-
Method Details
-
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
-
getFilters
-
getName
-