Packageorg.spicefactory.parsley.core.builder.impl
Classpublic class DefaultObjectProcessorBuilder
InheritanceDefaultObjectProcessorBuilder Inheritance Object
Implements ObjectProcessorBuilder, ObjectDefinitionBuilderPart

Default implementation of the ObjectProcessorBuilder interface.



Public Methods
 MethodDefined By
  
apply(target:ObjectDefinition):void
Applies this builder part to the final definition
DefaultObjectProcessorBuilder
  
Specify the phase the processor should be invoked in when the target instance gets removed from the Context.
DefaultObjectProcessorBuilder
  
Specifies the required type of the target instance configured by this processor.
DefaultObjectProcessorBuilder
  
Specify the phase the processor should be invoked in during initialization.
DefaultObjectProcessorBuilder
Method Detail
apply()method
public function apply(target:ObjectDefinition):void

Applies this builder part to the final definition

Parameters

target:ObjectDefinition — the final definition to apply this part to

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