All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
<TyphoonDefinitionPostProcessor> Protocol Reference

Allows for custom modification of a component factory's definitions. More...

Inheritance diagram for <TyphoonDefinitionPostProcessor>:

Instance Methods

(void) - postProcessDefinition:replacement:withFactory:
 Post process a definition. More...
 

Detailed Description

Allows for custom modification of a component factory's definitions.

Component factories can auto-detect TyphoonComponentFactoryPostProcessor components in their definitions and apply them before any other components get created.

See also
TyphoonConfigPostProcessor for an example implementation.
TyphoonComponentPostProcessor which modifies instances after they've been built, rather than the definitions

Method Documentation

- (void) postProcessDefinition: (TyphoonDefinition *)  definition
replacement: (TyphoonDefinition **)  definitionToReplace
withFactory: (TyphoonComponentFactory *)  factory 

Post process a definition.

Called for each definition in the factory. You able to modify definition and you can return another definition, using definitionToReplace pointer.

Parameters
definitionThe definition.
definitionToReplacepointer to definition replacement
factoryThe component factory.