@Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface ListenersFor
Container annotation to specify multiple
ListenerFor
annotations on a single class. Example:
@ListenersFor({
@ListenerFor(systemEventClass=PostAddToViewEvent.class),
@ListenerFor(systemEventClass=BeforeRenderEvent.class,
sourceClass=CustomOutput.class)
})
The action described in ListenerFor
must be taken for each
@ListenerFor
present in the container
annotation.
Modifier and Type | Required Element and Description |
---|---|
ListenerFor[] |
value |
public abstract ListenerFor[] value
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.