1. A computer implemented method for acting upon an event in an application within a computer, the method comprising: instantiating at least one component of the application; connecting the at least one component of the application to at least one other component of the application according to declarative rules, wherein connecting the at least one component of the application to the at least one other component of the application comprises connecting at least two application components according to the declarative rules to form at least one component domain, the at least one component domain grouping application components associated with a particular functionality of the application, wherein the grouped application components within the at least one component domain are configured to be regrouped in response to at least one event received by the application; and if the at least one component is formed into at least two sets of components, constraining a first set of components to a first phase domain characterized by a first phase space, and constraining a second set of components to a second phase domain characterized by a second phase space.