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: 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 m_fqn;
18: private final String m_type;
19: private final String m_pointcut;
20: private final MethodInfo m_method;
21: private final AspectDefinition m_aspectDef;
22:
23: public AdviceDefinitionBuilder(final String fqn, final String type,
24: final String pointcut, final MethodInfo method,
25: final AspectDefinition aspectDef) {
26: m_fqn = fqn;
27: m_type = type;
28: m_pointcut = pointcut;
29: m_method = method;
30: m_aspectDef = aspectDef;
31: }
32:
33: public void build() {
34: DefinitionParserHelper.createAndAddAdviceDefsToAspectDef(
35: m_type, m_pointcut, m_fqn, m_method, m_aspectDef);
36: }
37: }
|