Results 1 to 3 of 3

Thread: how to do custom-filter with annotations

  1. #1

    Default how to do custom-filter with annotations

    Hi

    I am using spring 2.5.6-SEC01.

    How can I achieve the following with annotations?

    Code:
    <beans:bean id="securityContextFilter" class="com.workscape.admin.SecurityContextFilter">
        	<custom-filter after="PRE_AUTH_FILTER"/>
        	<beans:property name="customerContext" ref="customerContext"/>
        </beans:bean>
    the customer context can be autowired into SecurityContextFilter using @Autowired annotation, the filter itself what annotation should I use there? @Service or @Filter (or something like that)

    TIA
    Srikanth

  2. #2
    Join Date
    Sep 2004
    Location
    Manchester, NH
    Posts
    1,236

    Default

    The short answer is, I don't believe you can.
    Peter Mularien | Blog
    Author, Spring Security 3 (Book) - Packt Publishing, Available in print and eBook form
    SCJP 5, Oracle DBA
    Any postings are my own opinion, and should not be attributed to my employer or clients.


  3. #3

    Default

    Thanks for the answer pmularien.

    Is it planned for any future releases? Or is it available in newer versions (than 2.0.5).

    I am using spring-security 2.0.4 and spring 2.5.6-SEC01

    Thanks again.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •