Klasse AdviceServiceImpl
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.yaafi.service.advice.AdviceServiceImpl
- Alle implementierten Schnittstellen:
org.apache.avalon.framework.configuration.Configurable,org.apache.avalon.framework.configuration.Reconfigurable,org.apache.avalon.framework.context.Contextualizable,org.apache.avalon.framework.logger.LogEnabled,org.apache.avalon.framework.service.Serviceable,AdviceService
public class AdviceServiceImpl
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements AdviceService, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.configuration.Reconfigurable
Simple service providing interceptor advices for ordinary POJOs. Since the
implementation uses Dynamic Proxies only methods invoked by an interface can
be advised.
- Autor:
- Siegfried Goeschl
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungAdvice the object with a the list of default AvalonInterceptorServices.Advice the object with a list of AvalonInterceptorServices.Advice the object with a the list of default AvalonInterceptorServices.Advice the object with a list of AvalonInterceptorServices.voidconfigure(org.apache.avalon.framework.configuration.Configuration configuration) voidcontextualize(org.apache.avalon.framework.context.Context context) protected ObjectDoes the actual work of advising the object.booleanIs the given object already adviced?voidreconfigure(org.apache.avalon.framework.configuration.Configuration configuration) voidservice(org.apache.avalon.framework.service.ServiceManager serviceManager) Von Klasse geerbte Methoden org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Konstruktordetails
-
AdviceServiceImpl
public AdviceServiceImpl()
-
-
Methodendetails
-
service
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager) throws org.apache.avalon.framework.service.ServiceException - Angegeben von:
servicein Schnittstelleorg.apache.avalon.framework.service.Serviceable- Löst aus:
org.apache.avalon.framework.service.ServiceException- Siehe auch:
-
contextualize
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException - Angegeben von:
contextualizein Schnittstelleorg.apache.avalon.framework.context.Contextualizable- Löst aus:
org.apache.avalon.framework.context.ContextException- Siehe auch:
-
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException - Angegeben von:
configurein Schnittstelleorg.apache.avalon.framework.configuration.Configurable- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException- Siehe auch:
-
reconfigure
public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException - Angegeben von:
reconfigurein Schnittstelleorg.apache.avalon.framework.configuration.Reconfigurable- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException- Siehe auch:
-
advice
Beschreibung aus Schnittstelle kopiert:AdviceServiceAdvice the object with a the list of default AvalonInterceptorServices.- Angegeben von:
advicein SchnittstelleAdviceService- Parameter:
object- the object to be advised- Gibt zurück:
- the advised object
- Siehe auch:
-
advice
Beschreibung aus Schnittstelle kopiert:AdviceServiceAdvice the object with a the list of default AvalonInterceptorServices.- Angegeben von:
advicein SchnittstelleAdviceService- Parameter:
name- the name of the objectobject- the object to be advised- Gibt zurück:
- the advised object
-
advice
Beschreibung aus Schnittstelle kopiert:AdviceServiceAdvice the object with a list of AvalonInterceptorServices.- Angegeben von:
advicein SchnittstelleAdviceService- Parameter:
interceptorList- the list of service namesobject- the object to be advised- Gibt zurück:
- the advised object
-
advice
Beschreibung aus Schnittstelle kopiert:AdviceServiceAdvice the object with a list of AvalonInterceptorServices.- Angegeben von:
advicein SchnittstelleAdviceService- Parameter:
name- the associated name of the objectinterceptorList- the list of service namesobject- the object to be advised- Gibt zurück:
- the advised object
-
isAdviced
Beschreibung aus Schnittstelle kopiert:AdviceServiceIs the given object already adviced?- Angegeben von:
isAdvicedin SchnittstelleAdviceService- Parameter:
object- the object to check- Gibt zurück:
- true if the object is an dynamic proxy
-
doAdvice
Does the actual work of advising the object.- Parameter:
name- the name of the object to be advisedinterceptorList- the list of interceptor services to advise the objectobject- the object to be advised- Gibt zurück:
- the advised object.
-