iit

trait Publisher

[source: iit/Publisher.scala]

trait Publisher
extends AnyRef
This Trait provides the pssibility to publish events. Published events of classes enhanced with this trait will trigger registered Handler Traits
Method Summary
def publish [T](eventCreation : => Event)(proceed : => T) : T
publishes an event and dispatch it synchronoulsy to all registered handler methods (annotated with @before or @after)
def publishAsynchronously (eventCreation : => Event) : Unit
publishes an event and dispatch it synchronoulsy to all registerd handler methods (anootated with @handler)
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def publish[T](eventCreation : => Event)(proceed : => T) : T
publishes an event and dispatch it synchronoulsy to all registered handler methods (annotated with @before or @after)

def publishAsynchronously(eventCreation : => Event) : Unit
publishes an event and dispatch it synchronoulsy to all registerd handler methods (anootated with @handler)


Copyright (c) 2009. All Rights Reserved.