On 14-08-15 19:21, Andrea Aime wrote: > Hi, > +0, already added. Thanks > > One question, I see this: > > <bean id="resourceStore" > class="org.geoserver.platform.resource.ResourceStoreProxy"> > <property name="delegate" ref="dataDirectoryResourceStore"/> > </bean> > > But I believe you want to allow a JDBC based store to be plugged. In > this situation in the rest of > GeoServer the code uses GeoServerExtensions to lookup an > implementation of resource store > once the app-context is setup, and if one is found, it's used, > otherwise a default one is > instantiated.
Is that true? I didn't come across this method. It appears to me that usually either ResourceLoader or GeoServerDataDirectory are used which are injected. The idea is to replace the bean with name "resourceStore" by the jdbc resource store. The default Resourceloader and GeoServerDataDirectory would then get injected with the jdbc store. If GeoServerExtensions.bean is used to get the resource store directly (which is not recommended, it is not proper IoC) it is best to get the bean by name and not by class. > > This one is a bit tricky though, in that the proxy is an > implementation itself, but not impossible > to implement using the usual pattern (one just gets all the > implementations available and compares > with self). I don't understand this sentence :/ Could you please elaborate Thanks Niels ------------------------------------------------------------------------------ _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
