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 
  public MonitoredAttributeSourceAdvisor(final TransactionMonitorInterceptor interceptor) { 
    this.interceptor = 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 
This code example shows how to use the following methods:
 * @author Thierry Templier 
public class ResourceAdvisor extends StaticMethodMatcherPointcutAdvisor { 
	public ResourceAdvisor() { 
	public ResourceAdvisor(ResourceInterceptor interceptor) { 
	public void setResourceInterceptor(ResourceInterceptor interceptor) { 
	public boolean matches(Method method, Class targetClass) { 
		return true; 
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: