persistence@glassfish.java.net

Re: Pluggable arcive factory

From: Sanjeeb Kumar Sahoo <Sanjeeb.Sahoo_at_Sun.COM>
Date: Mon, 22 Jan 2007 09:26:03 +0530

Hi Shaane,

I guess you are referring to
entity-persistence/src/java/oracle/toplink/essentials/ejb/cmp3/persistence/ArchiveFactoryImpl.java.
You have made a good point. The current implementation can be changed
very easily to make use of Services API. I never anticipated a
requirement for user to extend the implementation for new URL or Archive
types. May I know what kind of URL or Archive structure do you wish to
handle that the current implementation does not handle?

Thanks,
Sahoo

Sha-né wrote:
> Hello all,
>
> Would it be possible to make the ArchiveFactoryImpl pluggable? We
> could use the Service Provider mechanism
> (http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Service%20Provider)
> to plugin a new type of ArchiveFactory. This would allow us to plugin
> new types of Archive impls customized to our project source structure.
>
> Thanks
> Shaane