TyphoonDefinitionPostProcessor

Objective-C

@protocol TyphoonDefinitionPostProcessor <NSObject>

Swift

protocol TyphoonDefinitionPostProcessor : NSObjectProtocol

@ingroup Factory

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

TyphoonConfigPostProcessor for an example implementation.

See

TyphoonComponentPostProcessor which modifies instances after they’ve been built, rather than the definitions
  • Post process a component factory after its initialization.

    May be called more than once, if a PostProcessor is added to a ComponentFactory after a component has been retrieved from that factory.

    Declaration

    Objective-C

    - (void)postProcessDefinitionsInFactory:(TyphoonComponentFactory *)factory;

    Swift

    func postProcessDefinitions(in factory: TyphoonComponentFactory!)

    Parameters

    factory

    The component factory