Spring Framework AopConfigException - 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 AopConfigException class.

This code example shows how to use the following methods:
	/** 
	 * Create a new NotAnAtAspectException for the given class. 
	 * @param nonAspectClass the offending class 
	 */ 
	public NotAnAtAspectException(Class<?> nonAspectClass) {
		super(nonAspectClass.getName() + " is not an @AspectJ aspect");
		this.nonAspectClass = nonAspectClass;
	} 
 
	/** 
	 * Returns the offending class. 
	 */ 
	public Class<?> getNonAspectClass() {
		return this.nonAspectClass;
	} 
 
} 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
		} 
		catch (InstantiationException ex) {
			throw new AopConfigException("Unable to instantiate aspect class [" + this.aspectClass.getName() + "]", ex);
		} 
		catch (IllegalAccessException ex) {
			throw new AopConfigException("Cannot access element class [" + this.aspectClass.getName() + "]", ex);
		} 
	} 
 
	@Override 
	public ClassLoader getAspectClassLoader() {
		return this.aspectClass.getClassLoader();
	} 
 
	/** 
	 * Determine the order for this factory's aspect instance, 
	 * either an instance-specific order expressed through implementing 
	 * the {@link org.springframework.core.Ordered} interface, 
	 * or a fallback order. 
	 * @see org.springframework.core.Ordered 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
    super(interceptor); 
 
    CachingModelSource tempSource = interceptor.getCachingModelSource(); 
 
    if (tempSource == null) { 
      throw new AopConfigException("<" + interceptor.getClass().getName() 
          + "> has no <" + CachingModelSource.class.getName() + "> configured"); 
    } 
 
    cachingModelSource = tempSource; 
  } 
 
  /** 
   * Returns <code>true</code> if the return value of the intercepted method 
   * should be cached. 
   *  
   * @param method 
   *          the intercepted method to verify. 
   * @param targetClass 
   *          the class declaring the method. 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 
  public CachingAttributeSourceAdvisor(MetadataCachingInterceptor i) { 
    super(i); 
    CachingAttributeSource source = i.getCachingAttributeSource(); 
    if (source == null) 
      throw new AopConfigException("<" + i.getClass().getName() + "> has no <" 
          + CachingAttributeSource.class.getName() + "> configured"); 
    cachingAttributeSource = source; 
  } 
 
  public final boolean matches(Method method, Class targetClass) { 
    Cached attribute = cachingAttributeSource.attribute(method, targetClass); 
    return (attribute != null); 
  } 
} 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 
    FlushingAttributeSource tempAttributeSource = cacheInterceptor 
        .getFlushingAttributeSource(); 
 
    if (tempAttributeSource == null) { 
      throw new AopConfigException( 
          "Cannot construct a CacheFlushAttributeSourceAdvisor using a " 
              + "CacheFlushInterceptor that has no CacheFlushAttributeSource configured"); 
    } 
 
    cacheFlushAttributeSource = tempAttributeSource; 
  } 
 
  /** 
   * Returns <code>true</code> if the intercepted method should flush the 
   * cache. 
   *  
   * @param method 
   *          the intercepted method to verify. 
   * @param targetClass 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
    super(interceptor); 
 
    FlushingModelSource tempSource = interceptor.getFlushingModelSource(); 
 
    if (tempSource == null) { 
      throw new AopConfigException("<" + interceptor.getClass().getName() 
          + "> has no <" + FlushingModelSource.class.getName() + "> configured"); 
    } 
 
    flushingModelSource = tempSource; 
  } 
 
  /** 
   * @param method 
   *          the intercepted method to verify. 
   * @param targetClass 
   *          the class declaring the method. 
   * @return <code>true</code> if the return value of the intercepted method 
   *         should be cached. 
   */ 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 
    if (proxyInterfaces != null) {
      proxyFactory.setInterfaces(proxyInterfaces);
    } else if (!isProxyTargetClass()) {
      if (target instanceof TargetSource) {
        throw new AopConfigException(
            "Either 'proxyInterfaces' or 'proxyTargetClass' is required " 
                + "when using a TargetSource as 'target'"); 
      } 
 
      // rely on AOP infrastructure to tell us what interfaces to proxy 
      proxyFactory.setInterfaces(ClassUtils.getAllInterfaces(target));
    } 
 
    proxy = proxyFactory.getProxy();
  } 
 
  /** 
   * @return the created AOP proxy. 
   */ 
3
CodeRank
Connect your IDE to all the code out there  Get Codota for Java