Results 1 to 3 of 3

Thread: default-cardinality bug

  1. #1
    Join Date
    Oct 2008
    Posts
    0

    Default default-cardinality bug

    Hi,

    I've just discovered that when not speficied otherwise, cardinality for <osgi:set /> is 1..N and not 0..N as per documentation here:
    http://static.springframework.org/osgi/docs/current/reference/html/service-registry.html#service-registry:refs:global-defaults

    Regards
    Jaro

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default default-cardinality bug

    Jaro, the default cardinality is 1..X. The example you mention is used to display how you can change this default (to 0..X for example).
    To quote from the docs:
    If the default is not set, it will have a value of 1..N. In this example, the default value is 0..N. Note the osgi prefix added to the global attribute.
    Hope this helps,
    Costin Leau

  3. #3
    Join Date
    Oct 2008
    Posts
    0

    Default default-cardinality bug

    Appologies, I should have read it more carefully.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •