You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Harald Wellmann (JIRA)" <ji...@apache.org> on 2013/03/10 17:33:12 UTC

[jira] [Updated] (SHIRO-422) Reference CDI Managed Beans from INI files

     [ https://issues.apache.org/jira/browse/SHIRO-422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harald Wellmann updated SHIRO-422:
----------------------------------

    Attachment: SHIRO-422.patch

The attached patch depends on and includes the patch previously submitted for SHIRO-337.
                
> Reference CDI Managed Beans from INI files
> ------------------------------------------
>
>                 Key: SHIRO-422
>                 URL: https://issues.apache.org/jira/browse/SHIRO-422
>             Project: Shiro
>          Issue Type: New Feature
>          Components: Integration: JEE
>    Affects Versions: 1.2.1
>            Reporter: Harald Wellmann
>             Fix For: 1.3.0
>
>         Attachments: SHIRO-422.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira