|  | 
| 1 | 1 | /* | 
| 2 |  | - * Copyright 2002-2012 the original author or authors. | 
|  | 2 | + * Copyright 2002-2013 the original author or authors. | 
| 3 | 3 |  * | 
| 4 | 4 |  * Licensed under the Apache License, Version 2.0 (the "License"); | 
| 5 | 5 |  * you may not use this file except in compliance with the License. | 
|  | 
| 22 | 22 | import java.util.Locale; | 
| 23 | 23 | import java.util.Map; | 
| 24 | 24 | import java.util.Set; | 
| 25 |  | - | 
| 26 | 25 | import javax.servlet.ServletContext; | 
| 27 | 26 | 
 | 
| 28 | 27 | import org.springframework.beans.BeansException; | 
| @@ -290,53 +289,55 @@ public Object initializeBean(Object existingBean, String beanName) throws BeansE | 
| 290 | 289 | 			return existingBean; | 
| 291 | 290 | 		} | 
| 292 | 291 | 
 | 
| 293 |  | -		public <T> T createBean(Class<T> beanClass) throws BeansException { | 
| 294 |  | -			throw new UnsupportedOperationException("Bean creation is not supported"); | 
|  | 292 | +		public <T> T createBean(Class<T> beanClass) { | 
|  | 293 | +			throw new UnsupportedOperationException(); | 
| 295 | 294 | 		} | 
| 296 | 295 | 
 | 
| 297 | 296 | 		@SuppressWarnings("rawtypes") | 
| 298 |  | -		public Object createBean(Class beanClass, int autowireMode, boolean dependencyCheck) throws BeansException { | 
| 299 |  | -			throw new UnsupportedOperationException("Bean creation is not supported"); | 
|  | 297 | +		public Object createBean(Class beanClass, int autowireMode, boolean dependencyCheck) { | 
|  | 298 | +			throw new UnsupportedOperationException(); | 
| 300 | 299 | 		} | 
| 301 | 300 | 
 | 
| 302 | 301 | 		@SuppressWarnings("rawtypes") | 
| 303 |  | -		public Object autowire(Class beanClass, int autowireMode, boolean dependencyCheck) throws BeansException { | 
| 304 |  | -			return null; | 
|  | 302 | +		public Object autowire(Class beanClass, int autowireMode, boolean dependencyCheck) { | 
|  | 303 | +			throw new UnsupportedOperationException(); | 
| 305 | 304 | 		} | 
| 306 | 305 | 
 | 
| 307 | 306 | 		public void autowireBean(Object existingBean) throws BeansException { | 
| 308 |  | -			throw new UnsupportedOperationException("Autowiring is not supported"); | 
|  | 307 | +			throw new UnsupportedOperationException(); | 
| 309 | 308 | 		} | 
| 310 | 309 | 
 | 
| 311 |  | -		public void autowireBeanProperties(Object existingBean, int autowireMode, boolean dependencyCheck) throws BeansException { | 
| 312 |  | -			throw new UnsupportedOperationException("Autowiring is not supported"); | 
|  | 310 | +		public void autowireBeanProperties(Object existingBean, int autowireMode, boolean dependencyCheck) { | 
|  | 311 | +			throw new UnsupportedOperationException(); | 
| 313 | 312 | 		} | 
| 314 | 313 | 
 | 
| 315 |  | -		public Object configureBean(Object existingBean, String beanName) throws BeansException { | 
| 316 |  | -			throw new UnsupportedOperationException("Configuring a bean is not supported"); | 
|  | 314 | +		public Object configureBean(Object existingBean, String beanName) { | 
|  | 315 | +			throw new UnsupportedOperationException(); | 
| 317 | 316 | 		} | 
| 318 | 317 | 
 | 
| 319 |  | -		public Object resolveDependency(DependencyDescriptor descriptor, String beanName) throws BeansException { | 
| 320 |  | -			throw new UnsupportedOperationException("Dependency resolution is not supported"); | 
|  | 318 | +		public Object resolveDependency(DependencyDescriptor descriptor, String beanName) { | 
|  | 319 | +			throw new UnsupportedOperationException(); | 
| 321 | 320 | 		} | 
| 322 | 321 | 
 | 
| 323 |  | -		public Object resolveDependency(DependencyDescriptor descriptor, String beanName, Set<String> autowiredBeanNames, | 
| 324 |  | -				TypeConverter typeConverter) throws BeansException { | 
| 325 |  | -			throw new UnsupportedOperationException("Dependency resolution is not supported"); | 
|  | 322 | +		public Object resolveDependency(DependencyDescriptor descriptor, String beanName, | 
|  | 323 | +				Set<String> autowiredBeanNames, TypeConverter typeConverter) { | 
|  | 324 | +			throw new UnsupportedOperationException(); | 
| 326 | 325 | 		} | 
| 327 | 326 | 
 | 
| 328 | 327 | 		public void applyBeanPropertyValues(Object existingBean, String beanName) throws BeansException { | 
| 329 |  | -			throw new UnsupportedOperationException("Bean property initialization is not supported"); | 
|  | 328 | +			throw new UnsupportedOperationException(); | 
|  | 329 | +		} | 
|  | 330 | + | 
|  | 331 | +		public Object applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName) { | 
|  | 332 | +			throw new UnsupportedOperationException(); | 
| 330 | 333 | 		} | 
| 331 | 334 | 
 | 
| 332 |  | -		public Object applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName) | 
| 333 |  | -				throws BeansException { | 
| 334 |  | -			throw new UnsupportedOperationException("Post processing is not supported"); | 
|  | 335 | +		public Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName) { | 
|  | 336 | +			throw new UnsupportedOperationException(); | 
| 335 | 337 | 		} | 
| 336 | 338 | 
 | 
| 337 |  | -		public Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName) | 
| 338 |  | -				throws BeansException { | 
| 339 |  | -			throw new UnsupportedOperationException("Post processing is not supported"); | 
|  | 339 | +		public void destroyBean(Object existingBean) { | 
|  | 340 | +			throw new UnsupportedOperationException(); | 
| 340 | 341 | 		} | 
| 341 | 342 | 	} | 
| 342 | 343 | 
 | 
|  | 
0 commit comments