| Package | org.spicefactory.parsley.lifecycle.processor |
| Class | public class FactoryDefinitionReplacer |
| Inheritance | FactoryDefinitionReplacer Object |
| Implements | ObjectDefinitionReplacer |
| Method | Defined By | ||
|---|---|---|---|
Creates a new instance. | FactoryDefinitionReplacer | ||
Replaces (or wraps) the final object definition. | FactoryDefinitionReplacer | ||
| FactoryDefinitionReplacer | () | Constructor |
public function FactoryDefinitionReplacer(method:Method, registry:ObjectDefinitionRegistry)Creates a new instance.
Parametersmethod:Method — the factory method
| |
registry:ObjectDefinitionRegistry — the configuration for the associated registry
|
| replace | () | method |
public function replace(definition:ObjectDefinition):ObjectDefinitionReplaces (or wraps) the final object definition.
Parameters
definition:ObjectDefinition — the definition to be replaced
|
ObjectDefinition — the final definition to be used by the registry
|