KickJava   Java API By Example, From Geeks To Geeks.

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


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
10 /**
11  * TODO document class
12  *
13  * @author Jonas Bonér
14  */

15 public class PointcutDefinitionBuilder implements DefinitionBuilder {
16   private final String JavaDoc m_name;
17   private final String JavaDoc m_expression;
18   private final AspectDefinition m_aspectDef;
19
20   public PointcutDefinitionBuilder(final String JavaDoc name, final String JavaDoc expression, final AspectDefinition aspectDef) {
21     m_name = name;
22     m_expression = expression;
23     m_aspectDef = aspectDef;
24   }
25
26   public void build() {
27     DefinitionParserHelper.createAndAddPointcutDefToAspectDef(
28             m_name, m_expression, m_aspectDef
29     );
30   }
31 }
32
Popular Tags