org.codehaus.aspectwerkz.aspect
Class DefaultAspectContainerStrategy

java.lang.Object
  extended byorg.codehaus.aspectwerkz.aspect.AbstractAspectContainer
      extended byorg.codehaus.aspectwerkz.aspect.DefaultAspectContainerStrategy
All Implemented Interfaces:
AspectContainer

public class DefaultAspectContainerStrategy
extends AbstractAspectContainer

Implements the default aspect container strategy.

Author:
Jonas Bonér

Field Summary
protected  Constructor m_aspectConstructor
          The constructor for the aspect.
 
Fields inherited from class org.codehaus.aspectwerkz.aspect.AbstractAspectContainer
arrayWithSingleCrossCuttingInfo, ASPECT_CONSTRUCTION_TYPE_CROSS_CUTTING_INFO, ASPECT_CONSTRUCTION_TYPE_DEFAULT, ASPECT_CONSTRUCTION_TYPE_UNKNOWN, EMPTY_OBJECT_ARRAY, m_adviceRepository, m_aspectPrototype, m_constructionType, m_infoPrototype, m_introductionContainers, m_perClass, m_perInstance, m_perJvm, m_perThread
 
Constructor Summary
DefaultAspectContainerStrategy(CrossCuttingInfo crossCuttingInfo)
          Creates a new aspect container strategy.
 
Method Summary
protected  Object createAspect()
          Creates a new aspect instance.
protected  Constructor findConstructor()
          Grabs the correct constructor for the aspect.
 
Methods inherited from class org.codehaus.aspectwerkz.aspect.AbstractAspectContainer
addIntroductionContainer, createAdviceRepository, createPerClassAspect, createPerInstanceAspect, createPerJvmAspect, createPerThreadAspect, getAdvice, getCrossCuttingInfo, getIntroductionContainer, invokeAdvice, invokeAdvice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_aspectConstructor

protected Constructor m_aspectConstructor
The constructor for the aspect.

Constructor Detail

DefaultAspectContainerStrategy

public DefaultAspectContainerStrategy(CrossCuttingInfo crossCuttingInfo)
Creates a new aspect container strategy.

Parameters:
crossCuttingInfo - the cross-cutting info
Method Detail

createAspect

protected Object createAspect()
Creates a new aspect instance.

Specified by:
createAspect in class AbstractAspectContainer
Returns:
the new aspect instance

findConstructor

protected Constructor findConstructor()
Grabs the correct constructor for the aspect.

Returns:
the constructor for the aspect


Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.