You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Jared Bunting (JIRA)" <ji...@apache.org> on 2012/05/23 20:00:42 UTC

[jira] [Comment Edited] (SHIRO-364) Add "bean listener" feature to Ini factories

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

Jared Bunting edited comment on SHIRO-364 at 5/23/12 5:59 PM:
--------------------------------------------------------------

So right now, my interface looks something like this:

public interface IniBeanListener {
    void notifyCreated(String name, Object bean);

    void notifyDestroyed(String name, Object bean);
}

Are you proposing that I also include:

void notifyPropertySet(String name, Object bean, String propertyName, String propertyValue)
and
void notifyPropertiesSet(String name, Object bean)

?
                
      was (Author: deraj123):
    So right now, my interface looks something like this:

public interface IniBeanListener {
    void notifyCreated(String name, Object bean);

    void notifyDestroyed(String name, Object bean);
}

Are you proposing that I add:
                  
> 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