Hi Narcom,

Here ya go (I'll be updating this in the documentation soon):

[filters]
...

# Create an object that is injected into by 'myFilter' below
aDependency = some.pkg.MyClass
aDependency.fooProperty = someValue

myFilter = com.company.pkg.MyCustomFilter
myFilter.barProperty = anotherValue
myFilter.dependency = $aDependency
...

[urls]
...
/some/path/** = myFilter, authc, ...
...


You can also configure the SecurityManager and any of its dependencies
the same way in the main section:

[main]
securityManager.property = value
securityManager.dependency = $anotherDependency

etc.

HTH,

Les

On Fri, Dec 18, 2009 at 1:51 PM, Narcom <[email protected]> wrote:
>
> I try to add new custom filter (similar to UserFilter) to [filters] in
> ShiroFilter in web.xml
> but I cannot figure how to do it? Could some help me with it?
> --
> View this message in context: 
> http://n2.nabble.com/Adding-new-custom-filter-to-filters-in-ShiroFilter-tp4188224p4188224.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>

Reply via email to