KickJava   Java API By Example, From Geeks To Geeks.

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


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.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 /**
14  * TODO document class
15  *
16  * @author Jonas Bonér
17  */

18 public class MixinDefinitionBuilder implements DefinitionBuilder {
19   private final ClassInfo m_classInfo;
20   private final DeploymentModel m_deploymentModel;
21   private final String JavaDoc m_pointcut;
22   private final SystemDefinition m_systemDef;
23   private boolean m_transient;
24
25   public MixinDefinitionBuilder(final String JavaDoc mixinClass,
26                                 final DeploymentModel deploymentModel,
27                                 final String JavaDoc pointcut,
28                                 final boolean isTransient,
29                                 final SystemDefinition systemDef,
30                                 final ClassLoader JavaDoc 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