> Where is (are) this code located?

I think we will have to go look ... I would open up FactoryRegister and then 
look for references in the current workspace.
There is a picture in the wiki but that is down for me right now.

>> So perhaps:
>> - we could try generating additional entries for the MANIFEST.MF based on
>> the services/ directory
>> - we could process these additional entries of the MANIFEST.MF and
>> "register" these additional factories with the appropriate register
> 
> I don't really get what you mean here.
> Could you please be a bit more explicit? (like with an example)

I am not sure what I mean here as I have not done this myself yet; so we will 
have to look....
- CRS uses ReferencingFactoryFinder
- ReferencingFactoryFinder has the following...

 public static synchronized void addAuthorityFactory(final AuthorityFactory 
authority) {
        if (registry == null) {
            scanForPlugins();
        }
        getServiceRegistry().registerServiceProvider(authority);
        authorityNames = null;
    }

> What do you think of the approach with the fragments that I described in my 
> previous mail?
> Is this what you are thinking of? (I usually solve many of my OSGi problems 
> with fragments)

It could be what the fragments are doing to wire things up? I am not sure I 
understood what the fragments intended to do perfectly. 

I should be clear that registering factories by hand is a complete fallback 
position that is only needed if we cannot get FactorySPI to connect on its own. 
 It may be better to see if we can include the services/ directory as a bundle 
resource? Perhaps that will let it be discovered? Still registering factories 
by hand may be less work then waiting to figure out a smarter solution.

Jody
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to