org.springframework.security.config.annotation
Interface ObjectPostProcessor<T>

Type Parameters:
T - the bound of the types of Objects this ObjectPostProcessor supports.

public interface ObjectPostProcessor<T>

Allows initialization of Objects. Typically this is used to call the Aware methods, InitializingBean.afterPropertiesSet(), and ensure that DisposableBean.destroy() has been invoked.

Since:
3.2

Field Summary
static ObjectPostProcessor<Object> QUIESCENT_POSTPROCESSOR
          A do nothing implementation of the ObjectPostProcessor
 
Method Summary
<O extends T>
O
postProcess(O object)
          Initialize the object possibly returning a modified instance that should be used instead.
 

Field Detail

QUIESCENT_POSTPROCESSOR

static final ObjectPostProcessor<Object> QUIESCENT_POSTPROCESSOR
A do nothing implementation of the ObjectPostProcessor

Method Detail

postProcess

<O extends T> O postProcess(O object)
Initialize the object possibly returning a modified instance that should be used instead.

Parameters:
object - the object to initialize
Returns:
the initialized version of the object