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
 java.lang.Object advice(java.lang.Object object)
          Advice the object with a the list of default AvalonInterceptorServices.
 java.lang.Object advice(java.lang.String[] interceptorList, java.lang.Object object)
          Advice the object with a list of AvalonInterceptorServices.
 java.lang.Object advice(java.lang.String name, java.lang.Object object)
          Advice the object with a the list of default AvalonInterceptorServices.
 java.lang.Object advice(java.lang.String name, java.lang.String[] interceptorList, java.lang.Object object)
          Advice the object with a list of AvalonInterceptorServices.
 boolean isAdviced(java.lang.Object object)
          Is the given object already adviced?
 

Method Detail

isAdviced

boolean isAdviced(java.lang.Object object)
Is the given object already adviced?

Parameters:
object - the object to check
Returns:
true if the object is an dynamic proxy

advice

java.lang.Object advice(java.lang.Object object)
Advice the object with a the list of default AvalonInterceptorServices.

Parameters:
object - the object to be advised
Returns:
the advised object

advice

java.lang.Object advice(java.lang.String name,
                        java.lang.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

java.lang.Object advice(java.lang.String[] interceptorList,
                        java.lang.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

java.lang.Object advice(java.lang.String name,
                        java.lang.String[] interceptorList,
                        java.lang.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 © 2000-2008 Apache Software Foundation. All Rights Reserved.