jsr144-public
  1. jsr144-public
  2. JSR144_PUBLIC-23

Attribute name declaration, usage of the bean pattern

    Details

    • Type: Improvement Improvement
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: Specification
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      23

      Description

      Following the bean pattern and instrospection builtin the JVM, Is it still
      necessary to declare public static strings for all attributes?

        Activity

        Hide
        vperrot added a comment -

        The attributes names declaration are necessary as they are used to dissociate
        the attribute that are exposed to the interfaces from the one that are used for
        the implementations only.
        The introspection do not allow this distinction.

        A client is suitable to provide/use only the attributes returned by the
        getAttributeNames(https://jsr144-public.dev.java.net/nonav/javadocs/1.5/javax/oss/AttributeAccess.html#getAttributeNames())
        or from the static lists.

        These values are also used to manage the population of attributes in an
        efficient manner. It will be costly to go via the introspection to determine the
        attribute name each time necessary.

        Show
        vperrot added a comment - The attributes names declaration are necessary as they are used to dissociate the attribute that are exposed to the interfaces from the one that are used for the implementations only. The introspection do not allow this distinction. A client is suitable to provide/use only the attributes returned by the getAttributeNames( https://jsr144-public.dev.java.net/nonav/javadocs/1.5/javax/oss/AttributeAccess.html#getAttributeNames( )) or from the static lists. These values are also used to manage the population of attributes in an efficient manner. It will be costly to go via the introspection to determine the attribute name each time necessary.
        Hide
        vperrot added a comment -

        Use annotation ...

        Valid for the next version....

        Show
        vperrot added a comment - Use annotation ... Valid for the next version....

          People

          • Assignee:
            vperrot
            Reporter:
            vperrot
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: