org.glassfish.api.event
Annotation Type RestrictTo
@Target(value=PARAMETER)
@Retention(value=RUNTIME)
public @interface RestrictTo
Sometimes listeners are not interested in receiving all event types, forcing
them in checking the event type before doing any type of processing.
Alternatively, they can use this annotation to restrict the parameter type
or value they really are interested in. In this case, they can restrict
to a event type name so that their listener is only called when such event
type is dispatched.
- Author:
- Jerome Dochez
value
public abstract String value
Copyright © 2012. All Rights Reserved.