Interface AdviceService

All Known Implementing Classes:
AdviceServiceImpl

public interface AdviceService
Simple service providing interceptor advices for ordinary POJOs. Since the implementation uses Dynamic Proxies only methods invoked by an interface can be advised.
Author:
Siegfried Goeschl
  • Method Summary

    Modifier and Type
    Method
    Description
    advice(Object object)
    Advice the object with a the list of default AvalonInterceptorServices.
    advice(String[] interceptorList, Object object)
    Advice the object with a list of AvalonInterceptorServices.
    advice(String name, Object object)
    Advice the object with a the list of default AvalonInterceptorServices.
    advice(String name, String[] interceptorList, Object object)
    Advice the object with a list of AvalonInterceptorServices.
    boolean
    isAdviced(Object object)
    Is the given object already adviced?
  • Method Details

    • isAdviced

      boolean isAdviced(Object object)
      Is the given object already adviced?
      Parameters:
      object - the object to check
      Returns:
      true if the object is an dynamic proxy
    • advice

      Object advice(Object object)
      Advice the object with a the list of default AvalonInterceptorServices.
      Parameters:
      object - the object to be advised
      Returns:
      the advised object
    • advice

      Object advice(String name, Object object)
      Advice the object with a the list of default AvalonInterceptorServices.
      Parameters:
      name - the name of the object
      object - the object to be advised
      Returns:
      the advised object
    • advice

      Object advice(String[] interceptorList, Object object)
      Advice the object with a list of AvalonInterceptorServices.
      Parameters:
      interceptorList - the list of service names
      object - the object to be advised
      Returns:
      the advised object
    • advice

      Object advice(String name, String[] interceptorList, Object object)
      Advice the object with a list of AvalonInterceptorServices.
      Parameters:
      name - the associated name of the object
      interceptorList - the list of service names
      object - the object to be advised
      Returns:
      the advised object