|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
NodeRemoved.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 removed from the cache. | |
10 | * <p/> | |
11 | * Methods annotated with this annotation should accept a single | |
12 | * parameter, a {@link org.jboss.cache.notifications.event.TransactionRegisteredEvent} otherwise a {@link org.jboss.cache.notifications.IncorrectCacheListenerException} | |
13 | * will be thrown when registering your listener. | |
14 | * | |
15 | * @author <a href="mailto:manik@jboss.org">Manik Surtani</a> | |
16 | * @see CacheListener | |
17 | * @since 2.0.0 | |
18 | */ | |
19 | // ensure this annotation is available at runtime. | |
20 | @Retention(RetentionPolicy.RUNTIME) | |
21 | // ensure that this annotation is applied to classes. | |
22 | @Target(ElementType.METHOD) | |
23 | public @interface NodeRemoved | |
24 | { | |
25 | } |
|