jasco.runtime.aspect.factory
Class PerThreadAspectFactory

java.lang.Object
  extended by jasco.runtime.aspect.factory.PerThreadAspectFactory
All Implemented Interfaces:
IAspectFactory, IPredefinedAspectFactory, DoNotCache

public class PerThreadAspectFactory
extends java.lang.Object
implements IPredefinedAspectFactory, DoNotCache

Author:
Wim

Constructor Summary
PerThreadAspectFactory()
           
 
Method Summary
 java.util.Iterator getAll()
          Returns all aspect iunstances currently managed by the factory.
 IHook getAspectInstance(MethodJoinpoint jp, IAspectInstanceCreator creator)
          Returns the aspect instance applicable at this joinpoint.
 IHook getAspectInstance(java.lang.Object key, IAspectInstanceCreator creator)
           
 java.lang.String getKeyFetchSourceCode(java.lang.String jpname, MethodJoinpoint jp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerThreadAspectFactory

public PerThreadAspectFactory()
Method Detail

getAspectInstance

public IHook getAspectInstance(MethodJoinpoint jp,
                               IAspectInstanceCreator creator)
Description copied from interface: IAspectFactory
Returns the aspect instance applicable at this joinpoint. Use the creator for instantiating new hooks if necessary. Return value might be null, a default aspect instance will be used then.

Specified by:
getAspectInstance in interface IAspectFactory
Parameters:
jp - current joinpoint
creator - new hook creator
Returns:
the hook instance for jp

getAspectInstance

public IHook getAspectInstance(java.lang.Object key,
                               IAspectInstanceCreator creator)
Specified by:
getAspectInstance in interface IPredefinedAspectFactory

getKeyFetchSourceCode

public java.lang.String getKeyFetchSourceCode(java.lang.String jpname,
                                              MethodJoinpoint jp)
Specified by:
getKeyFetchSourceCode in interface IPredefinedAspectFactory

getAll

public java.util.Iterator getAll()
Description copied from interface: IAspectFactory
Returns all aspect iunstances currently managed by the factory.

Specified by:
getAll in interface IAspectFactory