At runtime you would need to add them directly to the FilterChainManager (assuming you are using the default FitlerChainResolver (PathMatchingFilterChainResolver)
Take a look at, ShiroFilterFactoryBean.createInstance(). You may want to subclass and return a managed bean from 'createFilterChainManager()' On Mon, Oct 10, 2016 at 2:41 PM, Hitesh <[email protected]> wrote: > I am using shiro in my zk application along with spring. I prepare some > url = > role mapping on system startup and add them in filterchainDefinitions > property of shiroFilter bean which is instance of class > ShiroFilterFacotryBean. > > I have also user interfaces for mapping roles to urls. Upon saving, I try > to > call the setFilterChainDefinition() method and set the new mapping but it > never gets reflected, unless the context is initialized again. > > I do not want to reload the entire context. What could be done to reflect > this new mapping in the system? > > > > -- > View this message in context: http://shiro-developer.582600. > n2.nabble.com/Facing-issue-in-reflecting-URL-ROLE-changes- > dynamically-tp7579469.html > Sent from the Shiro Developer mailing list archive at Nabble.com. >
