|
Re: New Logging Plugins question [message #173714 is a reply to message #173390] |
Mon, 10 July 2006 02:29 |
David Williams Messages: 722 Registered: July 2009 |
Senior Member |
|
|
On Thu, 06 Jul 2006 12:13:30 -0400, Michael Giroux
<michael.giroux@bull.com> wrote:
> Should these new logging plugins be used by other plugins that wish to
> generate logs other than .metadata/.log?
Michael, we didn't really plan on that, so, if you need that, or want to
use them
for that, a feature request and/or contribution would be in order.
We made these "common" plugins because some other third party code
required them, and
we noticed several Callisto projects were doing the same thing, so, we
didn't want to
"ship" multiple copies.
I don't know what "Eclipse-BuddyPolicy" really means. Is it obvious to you
what
value it should have for these bundles? Is it obvious to you what its
benifit is?
|
|
|
|
Re: New Logging Plugins question [message #174385 is a reply to message #173831] |
Thu, 13 July 2006 14:11 |
Chris Brealey Messages: 104 Registered: July 2009 |
Senior Member |
|
|
The "buddy policy" is like an inverted plugin dependency. As you wrote, it would
in this case enable the third party plugins' class loaders to load classes from
upstream plugins, and is particularly useful for third-party code that doesn't
know a thing about Eclipse extension points. We should be registering these
third party plugins so that upstream plugins can declare themselves as loadable
from the context of the third party plugins.
The Eclipse Orbit proposal [1] might be the strategic place to do this, but in
the short term, feel free to open a bug against wst.ws [2] for us to add an
"Eclipse-BuddyPolicy: registered" to our third party plugins.
[1] http://www.eclipse.org/proposals/orbit/
[2]
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Web%20To ols&component=wst.ws&rep_platform=all&op_sys=all
Thanks - CB.
Michael Giroux wrote:
> "David Williams" <david_williams@us.ibm.com> wrote in message
> news:op.tcgbu8jxac05ss@dmw2t23.raleigh.ibm.com...
>
> > We made these "common" plugins because some other third party code
> > required them, and
> > we noticed several Callisto projects were doing the same thing, so, we
> > didn't want to "ship" multiple copies.
>
> OK, thanks.
>
> > I don't know what "Eclipse-BuddyPolicy" really means. Is it obvious to you
> > what value it should have for these bundles? Is it obvious to you what
> > its benifit is?
>
> I'm not sure either. It seems to allow the classloader to find classes in
> other plugins even if the plugins are not referenced in the plugin.xml.
>
> For example, LOG4J properties configure the class name of an appender. Of
> course, there is no way at the time LOG4J plugin is built to know the names
> of all the plugins that might need to use it, so it would use
> Eclipse-BuddyPolicy to specify "registered". There is more on this at
> http://www.eclipsezone.com/articles/franey-logging/?source=a rchives.
>
> Michael
|
|
|
|
Powered by
FUDForum. Page generated in 0.04769 seconds