Hello,
I create a service and I need to use an activeObject to add in my database some informations.
My Service :
public class TestService extends AbstractService {
public JiraHome jiraHome;
public ActiveObjects ao;
public TestService(JiraHome jiraHome,ActiveObjects ao) {
this.jiraHome = jiraHome;
this.ao = ao;
}
@Override
public void run() {
AddDataFromCsv adfc = new AddDataFromCsv(jiraHome, ao);
adfc.addBD();
}
@Override
public ObjectConfiguration getObjectConfiguration() throws ObjectConfigurationException {
return getObjectConfiguration("TESTSERVICE",
"services/com/atlassian/tutorial/helloworld/testservice.xml",
null);
}
}
The class AddDataFromCsv works fine.
When itry to add my service in jira i have an error and i don't understand what it means :
com.atlassian.tutorial.helloworld.TestService has unsatisfied dependency 'interface com.atlassian.activeobjects.external.ActiveObjects' for constructor 'public com.atlassian.tutorial.helloworld.TestService(com.atlassian.jira.config.util.JiraHome,com.atlassian.activeobjects.external.ActiveObjects)' from org.picocontainer.DefaultPicoContainer@20d535de:1<[Immutable]:com.atlassian.jira.component.CachingMutablePicoContainer@56c4e51e.
Thanks.