jasco.runtime.aspect.factory
Class PerThreadAspectFactory
java.lang.Object
jasco.runtime.aspect.factory.PerThreadAspectFactory
- All Implemented Interfaces:
- IAspectFactory, IPredefinedAspectFactory, DoNotCache
public class PerThreadAspectFactory
- extends java.lang.Object
- implements IPredefinedAspectFactory, DoNotCache
- Author:
- Wim
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerThreadAspectFactory
public PerThreadAspectFactory()
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 joinpointcreator
- 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