shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jared Bunting (JIRA)" <>
Subject [jira] [Created] (SHIRO-370) Allow for a more type-safe way to set properties when using Guice integration
Date Wed, 06 Jun 2012 03:56:23 GMT
Jared Bunting created SHIRO-370:

             Summary: Allow for a more type-safe way to set properties when using Guice integration
                 Key: SHIRO-370
             Project: Shiro
          Issue Type: New Feature
            Reporter: Jared Bunting
            Assignee: Jared Bunting

Currently, setting properties when using Guice integration is somewhat hacky.  We're just
binding constants to strings, and hoping that the names match up with method calls.  I would
prefer something more guicey, that provides us with the typesafety that I tend to expect from

My thought is to allow methods, similar to the @Provides methods, on the ShiroModule and ShiroWebModule
with a @Configures annotation.  These methods would then be essentially wrapped in a MembersInjector
and setup to be passed a particular object just after its instantiation.

The goal would be to allow something like this in the module:

    public void configureSessionManager(DefaultWebSessionManager webSessionManager, Cookie

The DefaultWebSessionManager would be the bean being injected, while the Cookie would simply
be treated as an injected dependency, much like the arguments in a @Provides method.  

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message