1 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 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, 24 final String type, 25 final String 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 |