Defer constants gathering until after setup

Reviewed By: javache

Differential Revision: D2986095

fb-gh-sync-id: 1f449e69ca74466e7951d621ceaf624abe034139
shipit-source-id: 1f449e69ca74466e7951d621ceaf624abe034139
This commit is contained in:
Nick Lockwood
2016-02-29 09:47:14 -08:00
committed by Facebook Github Bot 6
parent 8d44c2db4f
commit d7d47d8120
3 changed files with 28 additions and 7 deletions

View File

@@ -37,6 +37,14 @@
*/
- (void)finishSetupForInstance;
/**
* Calls `constantsToExport` on the module and stores the result. Note that
* this will init the module if it has not already been created. This method
* can be called on any thread, but may block the main thread briefly if the
* module implements `constantsToExport`.
*/
- (void)gatherConstants;
@property (nonatomic, strong, readonly) Class moduleClass;
@property (nonatomic, copy, readonly) NSString *name;