You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@excalibur.apache.org by Robert Burrell Donkin <ro...@gmail.com> on 2009/08/11 10:21:22 UTC
To Re or Not To Re(Package)
a number of excalibur components which separate their api from their
implementation share the same package for both. for example, pool-api
and pool-impl are both packaged into org.apache.avalon.excalibur.pool.
this doesn't play well with OSGi (and also seems a little old skool to
me) but can be worked around (for example by issues a pool-osgi
consolidating both api and impl).
it does beg the question: would it be better just to bite the bullet
and repackage?
opinions?
- robert
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org
Re: To Re or Not To Re(Package)
Posted by J Aaron Farr <fa...@apache.org>.
On Tue 11 Aug 2009 16:21, Robert Burrell Donkin <ro...@gmail.com> wrote:
> a number of excalibur components which separate their api from their
> implementation share the same package for both. for example, pool-api
> and pool-impl are both packaged into org.apache.avalon.excalibur.pool.
> this doesn't play well with OSGi (and also seems a little old skool to
> me) but can be worked around (for example by issues a pool-osgi
> consolidating both api and impl).
>
> it does beg the question: would it be better just to bite the bullet
> and repackage?
+1 to create new jars
--
J. Aaron Farr
馮傑仁
www.cubiclemuses.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org
Re: To Re or Not To Re(Package)
Posted by Leo Simons <ma...@leosimons.com>.
On Tue, Aug 11, 2009 at 9:21 AM, Robert Burrell
Donkin<ro...@gmail.com> wrote:
> a number of excalibur components which separate their api from their
> implementation share the same package for both. for example, pool-api
> and pool-impl are both packaged into org.apache.avalon.excalibur.pool.
> this doesn't play well with OSGi (and also seems a little old skool to
> me) but can be worked around (for example by issues a pool-osgi
> consolidating both api and impl).
>
> it does beg the question: would it be better just to bite the bullet
> and repackage?
If by "repackage" you mean put the api and impl code in one jar, sure!
Its not like anyone seems to care these days about loading as few
classes into their vms as possible :)
If by "repackage" you mean change the package names to create .api and
.impl, I think that's a bad idea because it breaks backwards
compatibility.
cheers,
- Leo
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org
Re: To Re or Not To Re(Package)
Posted by Carsten Ziegeler <cz...@apache.org>.
Robert Burrell Donkin wrote:
> a number of excalibur components which separate their api from their
> implementation share the same package for both. for example, pool-api
> and pool-impl are both packaged into org.apache.avalon.excalibur.pool.
> this doesn't play well with OSGi (and also seems a little old skool to
> me) but can be worked around (for example by issues a pool-osgi
> consolidating both api and impl).
>
> it does beg the question: would it be better just to bite the bullet
> and repackage?
>
Yes, I think repackaging is better and cleanly separates the stuff.
I think I did this already for the source resolver a long time ago.
Carsten
--
Carsten Ziegeler
cziegeler@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org