Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [higgins-dev] [IdAS] registry factoring

Replies in-line.

Because we're going to produce two versions of IdAS - plugin and
standard jar both from the same project, we need to be able to
register IdAS providers in two ways.

Agreed. I was worried about introducing Eclipse dependencies in the project, because I don't know how to filter those out (and not compile the Ext class that you describe below) for a non-plugin jar. If someone else knows how to do this, I won't worry about it.


It seems to me that standard java.security.Security mechanism may be
not the best choice to implement our registry for standard jars - the
problem is that such approach requires each provider to be registered
via java security file but this may not always be possible and so, it
is not very good for pluggable at runtime architecture.

Personally, I think it'll be better to use
javax.imageio.spi.ServiceRegistry mechanism which was initially
designed for pluggable at runtime architecture. Although main purpose
of ServiceRegistry was pluggabe image IO, it widely used by Sun's JDK
implementation for other registry purposes as well.


It wouldn't be required for a provider to be in the java security file, because we also allow run-time registration. But I'll take a look at the ServiceRegistry mechanism.

As for the best way to separate...

<snip>

I was working toward a similar solution (except for names -- what's an IdASServiceProvider?). Your proposal has an assumption that there is one and only one IdASRegistry object (per JVM). Do others think that's the right assumption? (I wasn't going to assume that, but I'm open to it.)

...Greg



Back to the top