config/src/main/java/org/springframework/security/config/annotation/configuration/AutowireBeanFactoryObjectPostProcessor.java
@SuppressWarnings("unchecked")
	public <T> T postProcess(T object) {
		if (object == null) {
			return null;
		}
		T result = null;
		try {
			result = (T) this.autowireBeanFactory.initializeBean(object,
					object.toString());
		}
		catch (RuntimeException e) {
			Class<?> type = object.getClass();
			throw new RuntimeException(
					"Could not postProcess " + object + " of type " + type, e);
		}
		this.autowireBeanFactory.autowireBean(object);
		if (result instanceof DisposableBean) {
			this.disposableBeans.add((DisposableBean) result);
		}
		if (result instanceof SmartInitializingSingleton) {
			this.smartSingletons.add((SmartInitializingSingleton) result);
		}
		return result;
	}
@SuppressWarnings("unchecked")
	public <T> T postProcess(T object) {
		if (object == null) {
			return null;
		}
		T result = null;
		try {
			result = (T) this.autowireBeanFactory.initializeBean(object,
					object.toString());
		}
		catch (RuntimeException e) {
			Class<?> type = object.getClass();
			throw new RuntimeException(
					"Could not postProcess " + object + " of type " + type, e);
		}
		this.autowireBeanFactory.autowireBean(object);
		if (result instanceof DisposableBean) {
			this.disposableBeans.add((DisposableBean) result);
		}
		if (result instanceof SmartInitializingSingleton) {
			this.smartSingletons.add((SmartInitializingSingleton) result);
		}
		return result;
	}
@ SuppressWarnings ( "unchecked" ) public < T > T postProcess ( T object ) { if ( object == null ) { return null ; } T result = null ; try { result = ( T ) this . autowireBeanFactory . initializeBean ( object , object . toString ( ) ) ; } catch ( RuntimeException e ) { Class < ? > type = object . getClass ( ) ; throw new RuntimeException ( "Could not postProcess " + object + " of type " + type , e ) ; } this . autowireBeanFactory . autowireBean ( object ) ; if ( result instanceof DisposableBean ) { this . disposableBeans . add ( ( DisposableBean ) result ) ; } if ( result instanceof SmartInitializingSingleton ) { this . smartSingletons . add ( ( SmartInitializingSingleton ) result ) ; } return result ; }
/*
(non-Javadoc)

@see
org.springframework.security.config.annotation.web.Initializer#initialize(java.
lang.Object)
/ * ( non - Javadoc )