Project

General

Profile

Feature #2270

EObjectAwareServiceBase: Provide accumulating implementation of getRegisteredHandlers()

Added by Simon Barner over 5 years ago. Updated over 1 year ago.

Status:
In Progress
Priority:
Normal
Category:
-
Target version:
Start date:
02/02/2015
Due date:
% Done:

10%

Estimated time:

Description

  • EObjectAwareServiceBase.getRegisteredHandlers() provides an override mechanism for handlers bound to specific model elements which is convenient to define generic handler for an abstract model element class, and to define exceptions for a few concrete ones.
  • In some cases, e.g. the org.fortiss.tooling.base.annotation.AnnotationValueService it would be more suitable to accumulate the handlers that have been registered for model element or one of its base classes. AnnotationValueService currently provides a local override of getRegisteredHandlers(), but such feature could be useful also in other cases and thus the integration in EObjectAwareServiceBase should be considered.

History

#1 Updated by Anonymous about 5 years ago

  • Assignee set to Anonymous
  • Target version changed from AF3 2.8 RC1 (Feature Freeze) to AF3 2.8 RC2 (Tested & Bugfixed)

#2 Updated by Anonymous about 5 years ago

  • Assignee changed from Anonymous to Johannes Eder

#3 Updated by Johannes Eder about 5 years ago

  • Status changed from New to Resolved
  • Assignee changed from Johannes Eder to Anonymous
  • % Done changed from 0 to 100

Added a comment in ObjectAwareServiceBase#getRegisteredHandlers stating that this method should be changed if the behavior (from AnntotationValueService) is reused in the future.

#4 Updated by Anonymous about 5 years ago

  • Target version changed from AF3 2.8 RC2 (Tested & Bugfixed) to AF3 2.8 Post-release

#5 Updated by Anonymous about 5 years ago

  • Priority changed from Low to High

#6 Updated by Anonymous about 5 years ago

  • Status changed from Resolved to In Progress
  • Assignee changed from Anonymous to Anonymous
  • % Done changed from 100 to 10

#7 Updated by Anonymous almost 5 years ago

  • Priority changed from High to Normal

#8 Updated by Anonymous almost 5 years ago

  • Target version changed from AF3 2.8 Post-release to AF3 2.9 Post-release

#9 Updated by Anonymous almost 5 years ago

Additional info: it happens for multiple handlers to satisfy the condition (which can be given as "c instanceof SomeClass") to be chosen. Methods to get handlers should not pick arbitrary one (e.g. by get(0)) from the multiple handlers.

#10 Updated by Johannes Eder about 4 years ago

  • Target version changed from AF3 2.9 Post-release to AF3 2.10 Feature Freeze

#11 Updated by Johannes Eder about 4 years ago

  • Assignee set to Florian Hölzl
  • Target version changed from AF3 2.10 Feature Freeze to TK 2 Release 10 Maintenance and Improvement

#12 Updated by Florian Hölzl over 2 years ago

  • Target version changed from TK 2 Release 10 Maintenance and Improvement to AF3 2.13 Release

#13 Updated by Anonymous over 2 years ago

  • Target version changed from AF3 2.13 Release to AF3 2.14 RC1 (Feature Freeze)

#14 Updated by Johannes Eder over 1 year ago

  • Target version changed from AF3 2.14 RC1 (Feature Freeze) to Backlog

Also available in: Atom PDF