title: Spring-security - AccessDecisionVoter-impl wont be invoked
body: <p><br>
  I am trying to create custom AccessDecisionVoter and just stop it in the debugged when it gets invoked.</p>
  
  <p>I have put a breake point in each method, but nothing happed.</p>
  
  <p><strong>spring-security.xml:</strong></p>
  
  <pre><code>&lt;bean id="accessDecisionManager" class="org.springframework.security.access.vote.UnanimousBased"&gt;
    &lt;property name="decisionVoters"&gt;
       &lt;list&gt;
            &lt;bean class="com.affiliates.server.security.voters.VoterTest"&gt;
                &lt;property name="brandsApi"  ref="brandsApi"/&gt;
            &lt;/bean&gt;
          &lt;/list&gt;
    &lt;/property&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>IBrandsApi.java</strong></p>
  
  <pre><code>    public interface IBrandsApi {
  
      IHibernateBean getByPK(Integer id);
  
      @Secured({ "ROLE_BRAND_ADMIN" })    
      IHibernateBean update(IHibernateBean brand);
  
      @Secured({ "ROLE_BRAND_ADMIN" })    
      IHibernateBean insert(IHibernateBean brand);
  
      @Secured({ "ROLE_BRAND_ADMIN" })    
      ResultContainer getAll(IFilter filter);
  
      @Secured({ "ROLE_ADMIN" })  
      Integer delete(IFilter filter); 
  }
  </code></pre>
  
  <p><strong>VoterTest.java (empty file with break points)</strong></p>
  
  <pre><code>    public class VoterTest implements AccessDecisionVoter {
  private IBrandsApi brandsApi;
  
      public IBrandsApi getBrandsApi() {
          return brandsApi;
      }
  
      public void setBrandsApi(IBrandsApi brandsApi) {
          this.brandsApi = brandsApi;
      }
  
          @Override
          public boolean supports(ConfigAttribute attribute) {
              System.out.println("here");
              return false;
  
          }
  
          @Override
          public boolean supports(Class&lt;?&gt; clazz) {
              System.out.println("here");
              return false;
          }
  
          @Override
          public int vote(Authentication authentication, Object object,
                  Collection&lt;ConfigAttribute&gt; attributes) {
              System.out.println("here");
              return 0;
          }
      }
  </code></pre>
  
  <p>BTW, there were no exceptions thrown during app loading / running
  Thanks</p>