jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • jvalidations
  • JVALIDATIONS-9

allow caller to specify what the build validation method is

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 0.6
  • Fix Version/s: 0.8
  • Labels:
    None

Description

Currently the validatable objects need implement Validatable, which mandates a buildValidation() methods.

Instead, see if its possible to pass a Functor that encapsulates what "build validation" method is to be called, and this will be applied across the object graph, building the validation object.

This will allow the caller have a family of build validation methods, for use in different contexts.

It just feels better, and is worth trying.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Mike Hogan added a comment - 18/Feb/10 10:02 AM

maybe look at sticking an annotation on the validation rule definition methods. The annotation can optionally have tags. When collecting the validation rules, the default is to use any method with the annotation, but the caller can optionally specify which of the tags (associated with the annotation) to look at.

Show
Mike Hogan added a comment - 18/Feb/10 10:02 AM maybe look at sticking an annotation on the validation rule definition methods. The annotation can optionally have tags. When collecting the validation rules, the default is to use any method with the annotation, but the caller can optionally specify which of the tags (associated with the annotation) to look at.

People

  • Assignee:
    Mike Hogan
    Reporter:
    Mike Hogan
Vote (0)
Watch (0)

Dates

  • Created:
    17/Feb/10 7:58 AM
    Updated:
    18/Feb/10 10:02 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.