[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mylar-dev] Need advice on how to go about implementing a connector
|
Hi Peter,
Peter Thomas wrote:
I am involved with the development of JTrac [ http://jtrac.info ], a
relatively new Java (Spring + Hibernate) issue-tracker web-app. I am
interested in implementing a Mylar connector for JTrac similar to what
is available for BugZilla, JIRA, Trac etc. It may be an uphill task for
me personally as I have not had any exposure to writing Eclipse plugins
at all, but I am willing to give it a shot.
Anyway, first I would focus on implementing a remote API for JTrac,
before thinking about the client-side. I am sure a lot of thought has
gone into Mylar to flesh out and define a generic task-management
abstraction - and I am looking to borrow from this model also. In other
words I am open to changing JTrac internals to be a closer fit to Mylar
if it makes sense.
My questions:
1) Where is a good place to start understanding the domain model of
Mylar and what it expects from an external task repository?
http://wiki.eclipse.org/index.php/Mylar_Integrator_Reference#Creating_Connectors
From a code standpoint, the most important to classes that you'll have to
implement to create a connector are AbstractRepositoryConnector and
AbstractRepositoryConnectorUi. If you're looking for a good place to look as
reference, I'd probably recommend looking at the trac plug-in's implementations
of these, it's a little bit simpler than the bugzilla one. (oh, and since you're
new to eclipse plug-in development, I'd also recommend that you look at how
plug-in.xml references these classes in the two plug-ins:
org.eclipse.mylar.trac.core, org.eclipse.mylar.trac.ui)
2) Would you recommend a SOAP or a REST interface for any specific
reason or based on experience with JIRA vs BugZilla?
I didn't write any of the internals of either of these connectors, so I can't
really comment on that. My intuition says that it's probably more complexity
than you need though.
3) Does Mylar recommend any particular remoting protocol, like RMI or
Burlap / Hessian
Mylar makes an effort to make sure that connectors are not imposed any
restrictions on which connection protocol they wish to use. if it's helpful for
you the org.eclipse.mylar.context.core plug-in exports the Apache httpclient,
and xml-rpc client libraries.
Keep us posted on how your development of this connector goes, if you find any
roadblocks from a Mylar code standpoint, feel free to send another post here, or
file a bug report.
Nathan