Packageorg.spicefactory.parsley.core.builder
Interfacepublic interface PropertyProcessorBuilder

Builder for applying configuration to a single property processor.



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

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
PropertyProcessorBuilder — this builder instance for method chaining
expectType()method 
public function expectType(type:Class):PropertyProcessorBuilder

Specifies the required type of the property configured by this processor.

Parameters

type:Class — the required type of the property configured by this processor

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

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
PropertyProcessorBuilder — this builder instance for method chaining
mustRead()method 
public function mustRead():PropertyProcessorBuilder

Indicates that the processor must read from the property.

Returns
PropertyProcessorBuilder — this builder instance for method chaining
mustWrite()method 
public function mustWrite():PropertyProcessorBuilder

Indicates that the processor must write to the property.

Returns
PropertyProcessorBuilder — this builder instance for method chaining