Protect proxy injected into mediators. #50

Closed
MindScriptAct opened this Issue Nov 26, 2013 · 1 comment

Projects

None yet

1 participant

@MindScriptAct
Owner

add extra parameter to proxyMap.map() function -
injectIntoMediatorsAs:Class

This will force mediator to be injected as anotehr clas only into mediators.

It is useful if you want to protect data in your proxy, from mediator accidentally changing it.

Create get only interface, and pass it as extra parameter.

Trying to get Proxy not as interface will throw error. (only interface will be assesable to mediators.)

@MindScriptAct
Owner

Implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment