org.apache.fulcrum.yaafi.service.advice
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
 Object advice(Object object)
          Advice the object with a the list of default AvalonInterceptorServices.
 Object advice(String[] interceptorList, Object object)
          Advice the object with a list of AvalonInterceptorServices.
 Object advice(String name, Object object)
          Advice the object with a the list of default AvalonInterceptorServices.
 Object 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 Detail

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:
object - the object to be advised
interceptorList - the list of service names
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
object - the object to be advised
interceptorList - the list of service names
Returns:
the advised object


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.