1. A computer-implemented method of handling events raised by a publisher, using a computer with a processor, comprising: detecting an event raised by the publisher; identifying a program entity, by identifying an event handler attribute, on the program entity itself, indicative of the program entity subscribing to the event, as an event handler; and invoking the identified event handler based on the event.