Last active
December 23, 2017 16:27
-
-
Save yayaa/e4f06c1cd3c4b5900e01fb2aea1cb76c to your computer and use it in GitHub Desktop.
ComponentDispatcher - 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SampleCoreComponentGenerator : CoreComponentGenerator<YourCoreComponent>() { | |
override fun generate(application: Application): YourCoreComponent { | |
// Create your component here... | |
} | |
} | |
class Feature1ComponentGenerator : FeatureComponentGenerator<YourFeatureComponent>() { | |
override fun generate(application: Application, coreComponent: YourCoreComponent?): YourFeatureComponent { | |
// Create your component here... Please notice, if you don't create | |
// an implementation of `CoreComponentGenerator` here coreComponent will be null. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment