KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > aspectwerkz > joinpoint > impl > EnclosingStaticJoinPointImpl


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.aspectwerkz.joinpoint.impl;
5
6 import com.tc.aspectwerkz.joinpoint.EnclosingStaticJoinPoint;
7 import com.tc.aspectwerkz.joinpoint.Signature;
8 import com.tc.aspectwerkz.joinpoint.management.JoinPointType;
9
10 /**
11  * Sole implementation of {@link com.tc.aspectwerkz.joinpoint.EnclosingStaticJoinPoint}.
12  * It provides access to the enclosing {@link com.tc.aspectwerkz.joinpoint.Signature}
13  * of the joinpoint.
14  *
15  * @author <a HREF="mailto:the_mindstorm@evolva.ro">Alex Popescu</a>
16  */

17 public class EnclosingStaticJoinPointImpl implements EnclosingStaticJoinPoint {
18   private Signature m_signature;
19   private JoinPointType m_joinPointType;
20
21   public EnclosingStaticJoinPointImpl(Signature signature, JoinPointType jpType) {
22     m_signature = signature;
23     m_joinPointType = jpType;
24   }
25
26   /**
27    * Retrieve the {@link Signature} of the enclosing join point.
28    *
29    * @return a {@link Signature}
30    */

31   public Signature getSignature() {
32     return m_signature;
33   }
34
35   /**
36    * Return a join point type corresponding to the enclosing join point.
37    *
38    * @return one of {@link JoinPointType#CONSTRUCTOR_EXECUTION} or
39    * {@link JoinPointType#METHOD_EXECUTION} or {@link JoinPointType#STATIC_INITIALIZATION}.
40    */

41   public JoinPointType getType() {
42     return m_joinPointType;
43   }
44 }
45
Popular Tags