Hey Jukka,

What about slightly different names for the static version? Something like:

//non-static

public String detect(){//...}

//static

public static String doDetect(){//...}

It would be nice to support A and B. An alternative would be to make a 
StaticTika class which extends Tika, and provides static versions of the 
methods. Is this possible?

Cheers,
Chris



On 11/13/09 2:17 PM, "Jukka Zitting" <jukka.zitt...@gmail.com> wrote:

Hi,

On Wed, Nov 11, 2009 at 11:59 PM, Mattmann, Chris A (388J)
<chris.a.mattm...@jpl.nasa.gov> wrote:
> My +1 for option A and B, I think it's better in the long run since 
> configuration is an issue.
> All methods from option B should load default static configuration. I'd be 
> happy to take
> the lead on JIRA'ing and implementing this in 0.5...

I thought about this a bit more and realized that Java won't allow
both static and non-static versions of the same method signature in a
single class. :-( I guess we'll need to stick with either option A or
option B.

BR,

Jukka Zitting


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.mattm...@jpl.nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Reply via email to