|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
NodeMoved.java | - | - | - | - |
|
1 | package org.jboss.cache.notifications.annotation; | |
2 | ||
3 | import java.lang.annotation.ElementType; | |
4 | import java.lang.annotation.Retention; | |
5 | import java.lang.annotation.RetentionPolicy; | |
6 | import java.lang.annotation.Target; | |
7 | ||
8 | /** | |
9 | * This annotation should be used on methods that need to be notified when a node is moved using the {@link org.jboss.cache.Cache#move(org.jboss.cache.Fqn,org.jboss.cache.Fqn)} | |
10 | * API. | |
11 | * <p/> | |
12 | * Methods annotated with this annotation should accept a single | |
13 | * parameter, a {@link org.jboss.cache.notifications.event.NodeMovedEvent} otherwise a {@link org.jboss.cache.notifications.IncorrectCacheListenerException} | |
14 | * will be thrown when registering your listener. | |
15 | * | |
16 | * @author <a href="mailto:manik@jboss.org">Manik Surtani</a> | |
17 | * @see CacheListener | |
18 | * @since 2.0.0 | |
19 | */ | |
20 | // ensure this annotation is available at runtime. | |
21 | @Retention(RetentionPolicy.RUNTIME) | |
22 | // ensure that this annotation is applied to classes. | |
23 | @Target(ElementType.METHOD) | |
24 | public @interface NodeMoved | |
25 | { | |
26 | } |
|