Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-222

IdentityConfigurationBuilder.named always create new builder even if builder with same name already exists

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • PLINK_2.5.0.Beta7
    • PLINK_2.5.0.Beta6
    • IDM
    • None

      For example when I have builder like:

      Builder builder = new IdentityConfigurationBuilder()
        .named("default")
          .store();
        .named("default")
        .store();
      

      The second call to method named("default") didn't return me the previously created instance of NamedIdentityConfigurationBuilder, but it always create new NamedIdentityConfigurationBuilder and return this new instance.

      It's not good as it doesn't allow me to return already existing instance of named builder and change it (For example if builder is partially initialized from XML, but I need to add some stuff programmatically to it).

      Also it's error prone as it could end with more instances if IdentityConfiguration with same name.

            mposolda@redhat.com Marek Posolda
            mposolda@redhat.com Marek Posolda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: