Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
1.2.1
-
None
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.