From: Chris H. <ch...@op...> - 2003-01-02 16:56:41
|
No, the constructor should not be public. No classes with Impl suffixes should be constructed directly. Yeah, this confused me a bit too, as the FilterFactory is what you use to create the other objects. What you need to do is use the static createFilterFactory method in FilterFactory (in core). This checks the system properties for the default FilterFactory implementation, and also optionally allows the client to specify which FilterFactory he may want to use. This way the interface for filters does not rely directly on any implementation. So to create the factory, the code would be something like: FilterFactory filterFac = FilterFactory.createFilterFactory(); You can see examples of this in the test code for modules which use filters, such as postgis. Hope this helps, Chris On 1 Jan 2003, Rueben Schulz wrote: > Hello, > > I have been 'playing' with geotools2 for the last few weeks and have now > started to look at filters. The filters I have tried work great; > however, I am having trouble creating FilterFactoryImpl objects. Should > its constructor be public, or am I missing something? > > Thank you for any feedback, > Rueben Schulz > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Geotools-gt2-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > |