1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| package org.jboss.cache.pojo.impl; |
9 |
| |
10 |
| import org.jboss.aop.InstanceAdvisor; |
11 |
| import org.jboss.aop.advice.Interceptor; |
12 |
| import org.jboss.cache.Fqn; |
13 |
| |
14 |
| import java.lang.reflect.Field; |
15 |
| import java.lang.reflect.Method; |
16 |
| import java.util.List; |
17 |
| |
18 |
| |
19 |
| |
20 |
| |
21 |
| |
22 |
| |
23 |
| |
24 |
| public class MethodDeclarations |
25 |
| { |
26 |
| public static final Method attachInterceptor; |
27 |
| public static final Method detachInterceptor; |
28 |
| public static final Method undoAttachInterceptor; |
29 |
| public static final Method undoDetachInterceptor; |
30 |
| ; |
31 |
| public static final Method inMemorySubstitution; |
32 |
| ; |
33 |
| public static final Method undoInMemorySubstitution; |
34 |
| ; |
35 |
| public static final Method incrementReferenceCount; |
36 |
| public static final Method decrementReferenceCount; |
37 |
| public static final Method undoIncrementReferenceCount; |
38 |
| public static final Method undoDecrementReferenceCount; |
39 |
| |
40 |
| static |
41 |
| { |
42 |
68
| try
|
43 |
| { |
44 |
68
| attachInterceptor = PojoUtil.class.getDeclaredMethod("attachInterceptor",
|
45 |
| new Class[]{Object.class, InstanceAdvisor.class, Interceptor.class}); |
46 |
68
| detachInterceptor = PojoUtil.class.getDeclaredMethod("detachInterceptor",
|
47 |
| new Class[]{InstanceAdvisor.class, Interceptor.class}); |
48 |
68
| undoAttachInterceptor = PojoUtil.class.getDeclaredMethod("undoAttachInterceptor",
|
49 |
| new Class[]{Object.class, InstanceAdvisor.class, Interceptor.class}); |
50 |
68
| undoDetachInterceptor = PojoUtil.class.getDeclaredMethod("undoDetachInterceptor",
|
51 |
| new Class[]{InstanceAdvisor.class, Interceptor.class}); |
52 |
68
| inMemorySubstitution = PojoUtil.class.getDeclaredMethod("inMemorySubstitution",
|
53 |
| new Class[]{Object.class, Field.class, Object.class}); |
54 |
68
| undoInMemorySubstitution = PojoUtil.class.getDeclaredMethod("undoInMemorySubstitution",
|
55 |
| new Class[]{Object.class, Field.class, Object.class}); |
56 |
68
| incrementReferenceCount = PojoUtil.class.getDeclaredMethod("incrementReferenceCount",
|
57 |
| new Class[]{Fqn.class, int.class, List.class}); |
58 |
68
| decrementReferenceCount = PojoUtil.class.getDeclaredMethod("decrementReferenceCount",
|
59 |
| new Class[]{Fqn.class, int.class, List.class}); |
60 |
68
| undoIncrementReferenceCount = PojoUtil.class.getDeclaredMethod("undoIncrementReferenceCount",
|
61 |
| new Class[]{Fqn.class, int.class, List.class}); |
62 |
68
| undoDecrementReferenceCount = PojoUtil.class.getDeclaredMethod("undoDecrementReferenceCount",
|
63 |
| new Class[]{Fqn.class, int.class, List.class}); |
64 |
| } |
65 |
| catch (NoSuchMethodException e) |
66 |
| { |
67 |
0
| throw new ExceptionInInitializerError(e);
|
68 |
| } |
69 |
| } |
70 |
| } |