org.jboss.seam.annotations
Annotation Type Observer


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface Observer

Marks a method as an observer of an event type or multiple event types.

Author:
Gavin King

Optional Element Summary
 boolean create
          In case no component instance exists, should a component instance be created to handle the event, or should the event be ignored.
 String[] value
           
 

value

public abstract String[] value
Returns:
the event type or types to observe
Default:
{}

create

public abstract boolean create
In case no component instance exists, should a component instance be created to handle the event, or should the event be ignored.

Returns:
true by default
Default:
true


Copyright © 2011 Seam Framework. All Rights Reserved.