Configuration
To configure and register the group processor you must do the following:
-
Write a properties file for example,
MyDummyGroupProcessor.properties
and enter the following:$class=com.mycompany.group.processor.MyDummyGroupProcessor # Define the components here if you need any for your processor
-
Create a group descriptor file called
DummyGroupDescriptor.properties
and enter the following:$class=com.escenic.framework.descriptor.GroupDescriptor groupName=my-group-name groupProcessor.my-group-name.1=/com/escenic/framework/processor/MyDummyGroupProcessor
where my-group-name is the name of the group.
You can specify more than one processor for a group. To add a second group processor, just add another entry like this:
groupProcessor.my-group-name.2=/com/escenic/framework/processor/MyAnotherGroupProcessor
-
Now in order to register your group descriptor with the group descriptor factory, create a file called
GroupDescriptorFactory.properties
. -
Enter the following in the file:
$class=com.escenic.framework.descriptor.GroupDescriptorFactory groupDescriptor.my-group-name=./DummyGroupDescriptor