On 2011-11-15 at 08:12:04, Steffen Hoffmann wrote:
> Am 15.11.2011 13:17, wrote Chris Nelson:
>> I'm working on teasing the scheduling parts of TracJSGantt out into a
>> second class or maybe a second plugin so that the scheduling algorithm
>> is pluggable. I have it as an ExtensionPoint that implements
>> ITaskScheduler but I'm not sure this is quite the right thing to do. ...
>>
>> But that seems awkward.
>>
>> A component is a singleton but if I made the scheduler a component, I
>> don't know how to *find* it in my code.
>
> So use the ExtensionOption [1] for that. An existing use case can be
> found in AccountManagerPlugin [1]. There is even an algorithm in the
> same plugin to retrieve all available/enabled implementations of the
> interface in question. So you could even provide a nice
> dropdown for the web_ui, if you want.
That looks like a great start. Thanks.
Chris
--
Christopher Nelson, Software Engineering Manager
SIXNET - Solutions for Your Industrial Networking Challenges
331 Ushers Road, Ballston Lake, NY 12019
Tel: +1.518.877.5173, Fax: +1.518.877.8346 www.sixnet.com
--
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-dev?hl=en.