Packageorg.spicefactory.parsley.core.builder
Interfacepublic interface ObjectDefinitionReplacer
Implementors FactoryDefinitionReplacer

Responsible for replacing the processed object definition with the final definition to be used for registering it in the container or use it as a nested object. This is an advanced feature. From all the builtin tags only the Factory tag uses this hook.



Public Methods
 MethodDefined By
  
Replaces (or wraps) the final object definition.
ObjectDefinitionReplacer
Method Detail
replace()method
public function replace(definition:ObjectDefinition):ObjectDefinition

Replaces (or wraps) the final object definition.

Parameters

definition:ObjectDefinition — the definition to be replaced

Returns
ObjectDefinition — the final definition to be used by the registry