Packageorg.spicefactory.parsley.lifecycle.processor
Classpublic class FactoryDefinitionReplacer
InheritanceFactoryDefinitionReplacer Inheritance Object
Implements ObjectDefinitionReplacer

The logic for transparently replacing the definition of a factory with the definition for the actual target instance produced by that factory.



Public Methods
 MethodDefined By
  
Creates a new instance.
FactoryDefinitionReplacer
  
Replaces (or wraps) the final object definition.
FactoryDefinitionReplacer
Constructor Detail
FactoryDefinitionReplacer()Constructor
public function FactoryDefinitionReplacer(method:Method, registry:ObjectDefinitionRegistry)

Creates a new instance.

Parameters
method:Method — the factory method
 
registry:ObjectDefinitionRegistry — the configuration for the associated registry
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