Articles : Page 1 of 1

  • Contextual Awareness - Making your container behave intelligently

    Contextual Awareness - Making your container behave intelligently

    Sep 10
    17

    Containers are dumb - what if they were smart? One of the things I really wanted to do when I set out to create the ServiceLocator in Siege.Requisitions was to create a container that could map an interface to multiple types, and then at runtime, automatically figure out which one of those types I really wanted. To accomplish this, I put at it's core a small rule engine to allow users to create rules that would help the container understand how to pick implementations. It works great -- but th...



  • 1