Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-359

Realm not initialised when bound in servlet mode with guice

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: Realms
    • Labels:

      Description

      I have a SampleRealm class which extends TextConfigurationRealm.

      I bind it in configureShiroWeb() method of ShiroWebModule with bindRealm().to(SampleRealm .class).in(Singleton.class);

      My expectation is OnInit() to be called at some point.

      But that never happens.

      I guess that should happen through InitializableInjectionListener() with Guice, but doesn't get triggered.

        Attachments

          Activity

            People

            • Assignee:
              deraj123 Jared Bunting
              Reporter:
              husayt HG
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: