kuujo / vertigo

Flow-based programming for the Vert.x application platform.
Apache License 2.0
155 stars 24 forks source link

Replace Network.createContext with ContextBuilder #15

Closed kuujo closed 11 years ago

kuujo commented 11 years ago

Currently, Network and Component definition classes provide createContext methods which convert a Network or Component into a NetworkContext or ComponentContext respectively. This functionality should be moved out of the Network and Component classes. Networks and components should not know the implementation details of their context counterparts. A third class - ContextBuilder - will broker the transformation of definitions to contexts so that neither definitions or contexts needs to know anything about each other.