Packageorg.spicefactory.parsley.core.builder.impl
Classpublic class DefaultPropertyBuilder
InheritanceDefaultPropertyBuilder Inheritance Object
Implements PropertyBuilder, ObjectDefinitionBuilderPart

Default PropertyBuilder implementation.



Public Methods
 MethodDefined By
  
Creates a new instance.
DefaultPropertyBuilder
  
apply(target:ObjectDefinition):void
Applies this builder part to the final definition
DefaultPropertyBuilder
  
Adds a processor for this property.
DefaultPropertyBuilder
  
value(value:*):void
Sets the value of this property.
DefaultPropertyBuilder
Constructor Detail
DefaultPropertyBuilder()Constructor
public function DefaultPropertyBuilder(property:Property)

Creates a new instance.

Parameters
property:Property — the property to configure
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

process()method 
public function process(processor:PropertyProcessor):PropertyProcessorBuilder

Adds a processor for this property.

Parameters

processor:PropertyProcessor — the property processor to add

Returns
PropertyProcessorBuilder — a builder for configuring the processor
value()method 
public function value(value:*):void

Sets the value of this property. This may be a simple value or an instance that implements ResolvableValue to be resolved at the time the value will be injected into the property, like those values returned by Inject.byType() and related methods.

Parameters

value:* — the property value to apply