JBoss.orgCommunity Documentation
Data injectors are used to create data for performance test. This part will describe which data injectors are implemented in eXo Collaboration and how to use them.
In eXo Collaboration, data injectors are implemented as plug-ins attached to the org.exoplatform.services.bench.DataInjectorService service and handled via RESTful requests. This service is normally registered to the portal container as a general component.
To use this service, add the following dependency to the Classpath of the server:
<dependency>
<groupId>org.exoplatform.commons</groupId>
<artifactId>exo.platform.commons.component</artifactId>
</dependency>
To activate the DataInjectorService component, you need to register it to a portal container by the following configuration:
<component>
<type>org.exoplatform.services.bench.DataInjectorService</type>
</component>
When you want to inject data for a specific product, you must implement a class which extends "org.exoplatform.services.bench.DataInjector" and register it to the DataInjectorService component as a plug-in.
In eXo Collaboration, there are three plug-ins attached to the DataInjectorService component:
ContactDataInjector
CalendarDataInjector
MailDataInjector