Packageorg.spicefactory.parsley.core.builder
Interfacepublic interface ObjectProcessorBuilder
Implementors DefaultObjectProcessorBuilder

Builder for applying configuration to a single object processor.



Public Methods
 MethodDefined By
  
Specify the phase the processor should be invoked in when the target instance gets removed from the Context.
ObjectProcessorBuilder
  
Specifies the required type of the target instance configured by this processor.
ObjectProcessorBuilder
  
Specify the phase the processor should be invoked in during initialization.
ObjectProcessorBuilder
Method Detail
destroyIn()method
public function destroyIn(phase:DestroyPhase):ObjectProcessorBuilder

Specify the phase the processor should be invoked in when the target instance gets removed from the Context. The default is DestroyPhase.postDestroy().

Parameters

phase:DestroyPhase — the phase the processor should be invoked in when the target instance gets removed from the Context

Returns
ObjectProcessorBuilder — this builder instance for method chaining
expectType()method 
public function expectType(type:Class):ObjectProcessorBuilder

Specifies the required type of the target instance configured by this processor.

Parameters

type:Class — the required type of the target instance configured by this processor

Returns
ObjectProcessorBuilder — this builder instance for method chaining
initIn()method 
public function initIn(phase:InitPhase):ObjectProcessorBuilder

Specify the phase the processor should be invoked in during initialization. The default is InitPhase.preInit().

Parameters

phase:InitPhase — the phase the processor should be invoked in during initialization

Returns
ObjectProcessorBuilder — this builder instance for method chaining