jasco.runtime.aspect.factory
Interface IAspectFactory

All Known Subinterfaces:
IPredefinedAspectFactory
All Known Implementing Classes:
AbstractAspectFactory, DefaultAspectFactory, PerAllAspectFactory, PerAspectBeanAspectFactory, PerBindingAspectFactory, PerClassAspectFactory, PerFirstArgAspectFactory, PerMethodAspectFactory, PerObjectAspectFactory, PerThreadAspectFactory, RuntimePerInstanceAspectFactory, WeakReferenceAspectFactory

public interface IAspectFactory

Interface for custom aspect factories. Implementing classes have to have a public default constructor!

Author:
Wim

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.
 

Method Detail

getAspectInstance

IHook getAspectInstance(MethodJoinpoint jp,
                        IAspectInstanceCreator creator)
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.

Parameters:
jp - current joinpoint
creator - new hook creator
Returns:
the hook instance for jp

getAll

java.util.Iterator getAll()
Returns all aspect iunstances currently managed by the factory.