Jody Garnett wrote:
> On 22/07/2010, at 10:05 PM, Andrea Aime wrote:
>
>>>> So, what do you think, good to come back in GeoTools?
>>> For sure :-)
>> Cool. Any preference for a package?
>
> I think we are starting to have a stable process api; I would not
> merging that into gt-api; so we can make use of the annotations
> throughout the library.
I was looking for a package, not a module...
>>>> Do you also want the JTS factory along with it (maybe it is of
>>>> interest for uDig?)
>>> Yep.
>> Ok. Another thing that I'd like to see is a similar factory that
>> allows the processes to be classes instead of static methods.
>> Something like:
>>
>> @DescribeProcess(...) public class MyProcess {
>>
>> public MyProcess() {};
>>
>> @DescribeResult(....) public <resultType>
>> execute(@DescribeParam(...) String p1, @DescribeParam(...) int p2,
>> ...) throws Exception { ... } }
>
> That can work; it could even be the same annotations; it is after all
> just a subject for reflection right. Only trouble in the above having
> a progress listener - any suggestions?
The work I did already finds out that you have a ProgressListener among
the arguments of the static method and if so, it passes down the one
provided with the process call. We can do the same with the above.
>> And then I guess the factory would take a list of classes with the
>> above annotations. A possible variant would be something that takes
>> parameters as bean properties and has a execute method that takes
>> no extra params (besides and eventual progress listener).
>
> No real opinion; let us see what the first implementation looks like.
I have no urgent need for one right now, but let me know if you have
time to hack one up :-p
Cheers
Andrea
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel