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/05 20:11:21 UTC

[jira] [Resolved] (SHIRO-228) Provide way to use TextConfigurationRealm without extending it (i.e. an init method which calls processDefinitions)

     [ https://issues.apache.org/jira/browse/SHIRO-228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Demers resolved SHIRO-228.
--------------------------------
    Resolution: Cannot Reproduce

This should work as long as you have a {{LifecycleBeanPostProcessor}} configured

> Provide way to use TextConfigurationRealm without extending it (i.e. an init method which calls processDefinitions)
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: SHIRO-228
>                 URL: https://issues.apache.org/jira/browse/SHIRO-228
>             Project: Shiro
>          Issue Type: Improvement
>    Affects Versions: 1.1.0
>            Reporter: Dan Diephouse
>
> I was trying to use the TextConfigurationRealm inside Spring for tests with the following configuration:
>     <spring:bean id="myRealm" class="org.apache.shiro.realm.text.TextConfigurationRealm">
>         <spring:property name="userDefinitions">
>           <spring:value>            
>             test=test
>           </spring:value>
>         </spring:property>
>     </spring:bean>
> However, there doesn't seem to be a way to call out to processDefinitions unless you extend this class. IMO there should be a default onInit method calls processDefinitions. Otherwise this class should be marked as abstract because it's currently useless unless you extend it.



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