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

Reference CDI Managed Beans from INI files

    Details

      Description

      In Java EE 6, CDI is the default dependency mechanism, which is not currently integrated with Shiro's lightweight DI using INI files.

      Example:

      [main]
      myRealm = com.example.MyRealm
      securityManager.realms = $myRealm

      In the MyRealm class, it would be natural to @Inject a UserDAO, but this does not work, since the myRealm instance is directly created by Shiro and not managed by the CDI BeanManager.

      Requirement:

      Find a way to use CDI managed beans in INI files.

        Attachments

        1. SHIRO-422.patch
          78 kB
          Harald Wellmann

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                hwellmann Harald Wellmann
              • Votes:
                4 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: