[Biojava-dev] WalkerFactory code proposal

David Huen smh1008 at cus.cam.ac.uk
Sat Aug 9 23:04:28 EDT 2003


Currently, the Visitor/Walker code is specific to FeatureFilters.
I propose to extend it to walking objects with the same structure as our
FeatureFilter objects (I need to support ChadoFeatureFilters which because
of the very different datamodel used by the Chado schema, is not readily
represented by the Biojava datamodel).

I propose adding a:-
public getInstance(Class filterClazz)

method to the WalkerFactory class where filterClazz defines the kind of
class for which a Walker is required.  The current getInstance() method is
retained and made equivalent to a call of kind:-

getInstance(FeatureFilter.class);

The instance of WalkerFactory is used thereafter in an identical manner to
the existing WalkerFactory save that is applies to a class other than
FeatureFilter.

Any objections?

Regards,
david h



More information about the biojava-dev mailing list