org.codehaus.aspectwerkz.advice
Class DefaultAdviceContainerStrategy

java.lang.Object
  extended byorg.codehaus.aspectwerkz.advice.DefaultAdviceContainerStrategy
All Implemented Interfaces:
AdviceContainer

public class DefaultAdviceContainerStrategy
extends java.lang.Object
implements AdviceContainer

Implements the default advice container strategy.

Author:
Jonas Bonér

Constructor Summary
DefaultAdviceContainerStrategy(AbstractAdvice prototype)
          Creates a new transient container strategy.
 
Method Summary
 ContainerType getContainerType()
          Returns the container type.
 java.lang.Object getPerClassAdvice(JoinPoint joinPoint)
          Returns the advice for the current class.
 java.lang.Object getPerInstanceAdvice(JoinPoint joinPoint)
          Returns the advice for the current instance.
 java.lang.Object getPerJvmAdvice(JoinPoint joinPoint)
          Returns the sole per JVM advice.
 java.lang.Object getPerThreadAdvice()
          Returns the advice for the current thread.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAdviceContainerStrategy

public DefaultAdviceContainerStrategy(AbstractAdvice prototype)
Creates a new transient container strategy.

Parameters:
prototype - the advice prototype
Method Detail

getPerJvmAdvice

public java.lang.Object getPerJvmAdvice(JoinPoint joinPoint)
Returns the sole per JVM advice.

Specified by:
getPerJvmAdvice in interface AdviceContainer
Parameters:
joinPoint - the joint point
Returns:
the advice

getPerClassAdvice

public java.lang.Object getPerClassAdvice(JoinPoint joinPoint)
Returns the advice for the current class.

Specified by:
getPerClassAdvice in interface AdviceContainer
Parameters:
joinPoint - the joint point
Returns:
the advice

getPerInstanceAdvice

public java.lang.Object getPerInstanceAdvice(JoinPoint joinPoint)
Returns the advice for the current instance.

Specified by:
getPerInstanceAdvice in interface AdviceContainer
Parameters:
joinPoint - the joint point
Returns:
the advice

getPerThreadAdvice

public java.lang.Object getPerThreadAdvice()
Returns the advice for the current thread.

Specified by:
getPerThreadAdvice in interface AdviceContainer
Returns:
the advice

getContainerType

public ContainerType getContainerType()
Returns the container type.

Specified by:
getContainerType in interface AdviceContainer
Returns:
the container type


Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.