1 4 5 package com.tc.aspectwerkz.definition.deployer; 6 7 import com.tc.aspectwerkz.DeploymentModel; 8 import com.tc.aspectwerkz.definition.DefinitionParserHelper; 9 import com.tc.aspectwerkz.definition.SystemDefinition; 10 import com.tc.aspectwerkz.reflect.impl.asm.AsmClassInfo; 11 import com.tc.aspectwerkz.reflect.ClassInfo; 12 13 18 public class MixinDefinitionBuilder implements DefinitionBuilder { 19 private final ClassInfo m_classInfo; 20 private final DeploymentModel m_deploymentModel; 21 private final String m_pointcut; 22 private final SystemDefinition m_systemDef; 23 private boolean m_transient; 24 25 public MixinDefinitionBuilder(final String mixinClass, 26 final DeploymentModel deploymentModel, 27 final String pointcut, 28 final boolean isTransient, 29 final SystemDefinition systemDef, 30 final ClassLoader loader) { 31 m_classInfo = AsmClassInfo.getClassInfo(mixinClass, loader); 32 m_deploymentModel = deploymentModel; 33 m_pointcut = pointcut; 34 m_transient = isTransient; 35 m_systemDef = systemDef; 36 } 37 38 public void build() { 39 DefinitionParserHelper.createAndAddMixinDefToSystemDef( 40 m_classInfo, m_pointcut, m_deploymentModel, m_transient, m_systemDef 41 ); 42 } 43 } 44 | Popular Tags |