shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jared Bunting (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SHIRO-364) Add "bean listener" feature to Ini factories
Date Wed, 20 Jun 2012 04:04:42 GMT

    [ https://issues.apache.org/jira/browse/SHIRO-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397240#comment-13397240
] 

Jared Bunting commented on SHIRO-364:
-------------------------------------

So far, I have implemented the majority of this and am committing what I have.  One thing
to note is that I send an instantiation notification for every bean in the map, including
those passed in as "defaults" (if they are not overridden).  Same for "notifyPropertiesSet",
it is invoked on every bean in the map, whether it specifically had any properties set or
not.

I have not implemented "notifyPropertySet" simply because I'm not sure how to keep it consistent
with the behavior that I just described.

Anyways, comments welcome.
                
> Add "bean listener" feature to Ini factories
> --------------------------------------------
>
>                 Key: SHIRO-364
>                 URL: https://issues.apache.org/jira/browse/SHIRO-364
>             Project: Shiro
>          Issue Type: New Feature
>            Reporter: Jared Bunting
>            Assignee: Jared Bunting
>             Fix For: 1.3.0
>
>
> The ini factory/configuration  has been described as a poor man's dependency injection.
 Even though other DI mechanisms are often used when more power and configurability is required,
the ini factory is still quite popular.  Adding the ability to register "bean listeners" that
are notified of the beans that get created would allow us to add some more complex functionality
to shiro, decouple it from our core classes, and support it in all of our supported DI solutions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message