| Summary: | Need ability to set priorities for conflicting artifact adapters | ||
|---|---|---|---|
| Product: | [WebTools] WTP ServerTools | Reporter: | Daniel R Somerfield <dsomerfi> |
| Component: | wst.server | Assignee: | Tim deBoer <deboer> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | blocker | ||
| Priority: | P3 | CC: | blancett, david_williams, gorkem.ercan |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| See Also: | https://git.eclipse.org/r/107006 | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 90003 | ||
|
Description
Daniel R Somerfield
This is an enhancement, but it is blocking progress on cactus integration work (90003). Fix dropped to HEAD. There is a new optional priority attribute on the moduleArtifactAdapter extension point, which defaults to 0. If a higher priority is specified, the adapter will be used first and override the default adapters. Maybe you've clarified this else where, but sounds like an integer covers the case of two adapters, since you have "0" and "other" ... but what if other plugins both pick same prioirty (say both pick "100") or what if one pick's 50 and works fine for a while, then someone comes a long and adds a plugin that adds one at priority 100, then the '50' one suddenly gets ignored? Just wondering ... I'd think you'd at least want do log something, and perhaps maybe document that "this API behavior may change in future to give the end user some choice in resolving conflicts" (if that's indeed an appropriate solution for this case). Hi David, I've had several talks with Jeem about this kind of situation, and we could come up with no "good" solutions to this problem. Since we have a completely extendable environment, someone else can always come along and pick the same priority, or two extenders could provide extensions that conflict. In practise, we'll always be shipping a tested unit in which we can tweak the priorities if something is wrong. Using an integer is marginally better than using something like 'override="someid"' - if you have any better ideas, please let me know (soon :) ). Change dropped to M-build stream. Closing. New Gerrit change created: https://git.eclipse.org/r/107006 |