Spring Framework StaticMethodMatcherPointcutAdvisor - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework StaticMethodMatcherPointcutAdvisor class.

This code example shows how to use the following methods:setAdvice, setClassFilter
   * @deprecated Use MonitoredAttributeSourceAdvisor(MonitoredAttributeSource) instead 
   * @param interceptor the interceptor to apply to  
   *     {@link com.orbitz.monitoring.api.annotation.Monitored} annotated methods 
   */ 
  @Deprecated 
  public MonitoredAttributeSourceAdvisor(final TransactionMonitorInterceptor interceptor) { 
    this.interceptor = interceptor; 
    setAdvice(this.interceptor); 
    this.monitoredAttributeSource = interceptor.getMonitoredAttributeSource(); 
    setClassFilter(new ClassFilter() { 
      @SuppressWarnings({"rawtypes", "unchecked"}) 
      public boolean matches(final Class clazz) { 
        return !clazz.isAssignableFrom(Object.class); 
      } 
    }); 
  } 
   
  /** 
   * Indicates whether the fully qualified class name will be prepended to monitor names 
   * @return true if the class name will be prepended, false otherwise 
6
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
 *  
 * @author Thierry Templier 
 */ 
public class ResourceAdvisor extends StaticMethodMatcherPointcutAdvisor { 
	 
	public ResourceAdvisor() { 
	} 
 
	public ResourceAdvisor(ResourceInterceptor interceptor) { 
		setResourceInterceptor(interceptor); 
	} 
 
	public void setResourceInterceptor(ResourceInterceptor interceptor) { 
		setAdvice(interceptor); 
	} 
 
	public boolean matches(Method method, Class targetClass) { 
		return true; 
	} 
 
5
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:setAdvice
    protected SecurityManager securityManager = null; 
 
    /** 
     * Create a new AuthorizationAttributeSourceAdvisor. 
     */ 
    public AuthorizationAttributeSourceAdvisor() { 
        setAdvice(new AopAllianceAnnotationsAuthorizingMethodInterceptor()); 
    } 
 
    public SecurityManager getSecurityManager() { 
        return securityManager; 
    } 
 
    public void setSecurityManager(org.apache.shiro.mgt.SecurityManager securityManager) { 
        this.securityManager = securityManager; 
    } 
 
    /** 
     * Returns <tt>true</tt> if the method has any Shiro annotations, false otherwise. 
     * The annotations inspected are: 
4
CodeRank
Experience pair programming with AI  Get Codota for Java