org.springframework.aop.framework.adapter.UnknownAdviceTypeException Java Examples

The following examples show how to use org.springframework.aop.framework.adapter.UnknownAdviceTypeException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProxyFactoryBean.java    From spring-analysis-note with MIT License 5 votes vote down vote up
/**
 * Convert the following object sourced from calling getBean() on a name in the
 * interceptorNames array to an Advisor or TargetSource.
 */
private Advisor namedBeanToAdvisor(Object next) {
	try {
		return this.advisorAdapterRegistry.wrap(next);
	}
	catch (UnknownAdviceTypeException ex) {
		// We expected this to be an Advisor or Advice,
		// but it wasn't. This is a configuration error.
		throw new AopConfigException("Unknown advisor type " + next.getClass() +
				"; Can only include Advisor or Advice type beans in interceptorNames chain except for last entry," +
				"which may also be target or TargetSource", ex);
	}
}
 
Example #2
Source File: ProxyFactoryBean.java    From java-technology-stack with MIT License 5 votes vote down vote up
/**
 * Convert the following object sourced from calling getBean() on a name in the
 * interceptorNames array to an Advisor or TargetSource.
 */
private Advisor namedBeanToAdvisor(Object next) {
	try {
		return this.advisorAdapterRegistry.wrap(next);
	}
	catch (UnknownAdviceTypeException ex) {
		// We expected this to be an Advisor or Advice,
		// but it wasn't. This is a configuration error.
		throw new AopConfigException("Unknown advisor type " + next.getClass() +
				"; Can only include Advisor or Advice type beans in interceptorNames chain except for last entry," +
				"which may also be target or TargetSource", ex);
	}
}
 
Example #3
Source File: ProxyFactoryBean.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Convert the following object sourced from calling getBean() on a name in the
 * interceptorNames array to an Advisor or TargetSource.
 */
private Advisor namedBeanToAdvisor(Object next) {
	try {
		return this.advisorAdapterRegistry.wrap(next);
	}
	catch (UnknownAdviceTypeException ex) {
		// We expected this to be an Advisor or Advice,
		// but it wasn't. This is a configuration error.
		throw new AopConfigException("Unknown advisor type " + next.getClass() +
				"; Can only include Advisor or Advice type beans in interceptorNames chain except for last entry," +
				"which may also be target or TargetSource", ex);
	}
}
 
Example #4
Source File: ProxyFactoryBean.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
/**
 * Convert the following object sourced from calling getBean() on a name in the
 * interceptorNames array to an Advisor or TargetSource.
 */
private Advisor namedBeanToAdvisor(Object next) {
	try {
		return this.advisorAdapterRegistry.wrap(next);
	}
	catch (UnknownAdviceTypeException ex) {
		// We expected this to be an Advisor or Advice,
		// but it wasn't. This is a configuration error.
		throw new AopConfigException("Unknown advisor type " + next.getClass() +
				"; Can only include Advisor or Advice type beans in interceptorNames chain except for last entry," +
				"which may also be target or TargetSource", ex);
	}
}