jasco.runtime.aspect.factory
Class PerBindingAspectFactory

java.lang.Object
  extended by jasco.runtime.aspect.factory.AbstractAspectFactory
      extended by jasco.runtime.aspect.factory.DefaultAspectFactory
          extended by jasco.runtime.aspect.factory.PerBindingAspectFactory
All Implemented Interfaces:
IAspectFactory

public class PerBindingAspectFactory
extends DefaultAspectFactory


Constructor Summary
PerBindingAspectFactory()
           
 
Method Summary
 IHook getAspectInstance(MethodJoinpoint jp, IAspectInstanceCreator creator)
          Returns the aspect instance applicable at this joinpoint.
 java.lang.Object getKey(MethodJoinpoint jp)
          Returns the key for looking up hooks given this joinpoint.
 java.lang.Object getKey(MethodJoinpoint jp, java.lang.Class<? extends IHook> hookclass)
           
 
Methods inherited from class jasco.runtime.aspect.factory.AbstractAspectFactory
fetchHook, getAll, getAspectInstance, storeHook
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerBindingAspectFactory

public PerBindingAspectFactory()
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
Overrides:
getAspectInstance in class AbstractAspectFactory
Parameters:
jp - current joinpoint
creator - new hook creator
Returns:
the hook instance for jp

getKey

public java.lang.Object getKey(MethodJoinpoint jp)
Description copied from class: AbstractAspectFactory
Returns the key for looking up hooks given this joinpoint. Key may be null, default hook is used in that case.

Specified by:
getKey in class AbstractAspectFactory
Parameters:
jp - joinpoint
Returns:
a key for looking up hooks

getKey

public java.lang.Object getKey(MethodJoinpoint jp,
                               java.lang.Class<? extends IHook> hookclass)