From: James Macgill <jrm33@ps...> - 2003-05-20 18:28:08
As mentioned in the IRC I've made a shot at revamping the FeatureFactory
ACTION FOR YOU:
I have modified all the files that think were involved, but if you have a
class which uses FeatureFactory make sure it now uses FlatFeatureFactory or
the new SPI based mechanism I'll describe in a bit.
FeatureFactory is now called FlatFeatureFactory
A new FeatureFactory interface has been added to core
FlatFeatureFactory now implements FeatureFactory
All references to FeatureFactory have been changed to FlatFeatureFactory
NEW SPI MECHANISM:
I've used the Service Provider Implementation (SPI) mechanism again to
allow for auto discovery of FeatureFactories.
An appropriate factory is located by its ability to create instances of a
For example the following code will obtain a FlatFeatureFactory without
referring to it directly:
FeatureType type = new FeatureTypeFlat(.......)
FeatureFactory fac = FeatureFactoryFinder.getFeatureFactory(type);
To fully separate I'll need to do something similar for
FeatureTypeFactory... I'll work on that.
Get latest updates about Open Source Projects, Conferences and News.