KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > aspectwerkz > definition > deployer > AdviceDefinitionBuilder


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
5 package com.tc.aspectwerkz.definition.deployer;
6
7 import com.tc.aspectwerkz.definition.AspectDefinition;
8 import com.tc.aspectwerkz.definition.DefinitionParserHelper;
9 import com.tc.aspectwerkz.reflect.MethodInfo;
10
11 /**
12  * TODO document class
13  *
14  * @author Jonas Bonér
15  */

16 public class AdviceDefinitionBuilder implements DefinitionBuilder {
17   private final String JavaDoc m_fqn;
18   private final String JavaDoc m_type;
19   private final String JavaDoc m_pointcut;
20   private final MethodInfo m_method;
21   private final AspectDefinition m_aspectDef;
22
23   public AdviceDefinitionBuilder(final String JavaDoc fqn,
24                                  final String JavaDoc type,
25                                  final String JavaDoc pointcut,
26                                  final MethodInfo method,
27                                  final AspectDefinition aspectDef) {
28     m_fqn = fqn;
29     m_type = type;
30     m_pointcut = pointcut;
31     m_method = method;
32     m_aspectDef = aspectDef;
33   }
34
35   public void build() {
36     DefinitionParserHelper.createAndAddAdviceDefsToAspectDef(
37             m_type, m_pointcut, m_fqn, m_method, m_aspectDef
38     );
39   }
40 }
41
Popular Tags