You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Brian Demers (JIRA)" <ji...@apache.org> on 2016/10/14 14:18:20 UTC

[jira] [Created] (SHIRO-593) Allow for IniWebEnvironment subclasses to specify defaults objects to ReflectionBuilder

Brian Demers created SHIRO-593:
----------------------------------

             Summary: Allow for IniWebEnvironment subclasses to specify defaults objects to ReflectionBuilder
                 Key: SHIRO-593
                 URL: https://issues.apache.org/jira/browse/SHIRO-593
             Project: Shiro
          Issue Type: Bug
          Components: Configuration
            Reporter: Brian Demers
            Assignee: Brian Demers


As a _framework developer_ I want to change the objects that Shiro loads, so that _other developers_ need to provide less configuration.

(When using a {{shiro.ini}}, the ReflectionBuilder processing happens in the IniSecurityManagerFactory, which makes it difficult to add default objects to the object graph.  Currently you must extend the environment and a SecurityManagerFactory to override this behavior.

Ideally I think the ReflectionBuilder processing should be moved to an Ini Environment class, but that is not easily done in a backwards compatible way.  Therefore mimicking the pattern that the {{IniFilterChainResolverFactory}} is probably the safe bet.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)