01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04:
05: package com.tc.aspectwerkz.definition.deployer;
06:
07: import com.tc.aspectwerkz.definition.AspectDefinition;
08: import com.tc.aspectwerkz.definition.DefinitionParserHelper;
09:
10: /**
11: * TODO document class
12: *
13: * @author Jonas Bonér
14: */
15: public class PointcutDefinitionBuilder implements DefinitionBuilder {
16: private final String m_name;
17: private final String m_expression;
18: private final AspectDefinition m_aspectDef;
19:
20: public PointcutDefinitionBuilder(final String name,
21: final String expression, final AspectDefinition aspectDef) {
22: m_name = name;
23: m_expression = expression;
24: m_aspectDef = aspectDef;
25: }
26:
27: public void build() {
28: DefinitionParserHelper.createAndAddPointcutDefToAspectDef(
29: m_name, m_expression, m_aspectDef);
30: }
31: }
|