org.azuki.framework.aop
Interface IAspect<T>
public interface IAspect<T>
All aspect bean must implement this interface in order to
create a code advice.
- Author:
- Robert Bakic (robert.bakic@gmail.com)
createAdvice
T createAdvice(IPointcut ipc)
throws Exception
- Creates a code advice that will be bound with the target bean.
The method must return null or throws a exception if the aspect
cannot be applied. For example, if the target bean does not match the contract.
- Parameters:
ipc
- The pointcut definition interface
- Returns:
- The code advice object. If the method return null, then the
framework considers that the aspect cannot be applied to the
targeted object.
- Throws:
Exception.
- In this case, the aspect cannot be applied (same as returning null).
Exception
Azuki Framework Copyright © 2006 the original author or authors.