Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel: allow initializing app proxies on overloaded newAppInstance #415

Merged
merged 2 commits into from
Sep 3, 2018

Conversation

izqui
Copy link
Contributor

@izqui izqui commented Sep 3, 2018

AppProxyFactory exposes the ability to pass an initialization payload that app proxies execute on their constructor. This PR exposes this ability at the Kernel level, so apps can be atomically initialized when they are created.

Copy link
Contributor

@sohkai sohkai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@@ -70,15 +70,16 @@ contract Kernel is IKernel, KernelStorage, Petrifiable, IsContract, VaultRecover
* @param _setDefault Whether the app proxy app is the default one.
* Useful when the Kernel needs to know of an instance of a particular app,
* like Vault for escape hatch mechanism.
* @param _initializePayload Payload for call made by the proxy on its constructor to initialize
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on this going before setDefault, since it's part of the proxy initialization?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no hard feelings either way.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in f4bb44c

@coveralls
Copy link

coveralls commented Sep 3, 2018

Coverage Status

Coverage decreased (-0.2%) to 98.911% when pulling f4bb44c on new-instance-init into 5b880fc on dev.

@sohkai sohkai merged commit e07c379 into dev Sep 3, 2018
@sohkai sohkai deleted the new-instance-init branch September 3, 2018 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants