Smart-IT-Kirkham / OpusVL-FB11

Business and Social Application Framework
http://flexibase.io
Other
1 stars 2 forks source link

Interfaces into services are not checked #44

Open Altreus opened 5 years ago

Altreus commented 5 years ago

I recently made a mistake where I put the wrong class name in when overriding the default behaviour for a Hat. Instead of selecting the fb11::simple_app class, provided by FB11, I chose the dbicdh::is_brain class instead.

Nothing alerted me to this. I just got an error when something somewhere tried to run a method on an object of the wrong type.

It would be good if we could associate Roles with Hat types so that we can test that the returned objects implement the correct interface.