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.void
configure
(org.apache.avalon.framework.configuration.Configuration configuration) void
contextualize
(org.apache.avalon.framework.context.Context context) protected Object
Does the actual work of advising the object.boolean
Is the given object already adviced?void
reconfigure
(org.apache.avalon.framework.configuration.Configuration configuration) void
service
(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:
service
in 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:
contextualize
in 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:
configure
in 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:
reconfigure
in Schnittstelleorg.apache.avalon.framework.configuration.Reconfigurable
- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException
- Siehe auch:
-
advice
Beschreibung aus Schnittstelle kopiert:AdviceService
Advice the object with a the list of default AvalonInterceptorServices.- Angegeben von:
advice
in SchnittstelleAdviceService
- Parameter:
object
- the object to be advised- Gibt zurück:
- the advised object
- Siehe auch:
-
advice
Beschreibung aus Schnittstelle kopiert:AdviceService
Advice the object with a the list of default AvalonInterceptorServices.- Angegeben von:
advice
in SchnittstelleAdviceService
- Parameter:
name
- the name of the objectobject
- the object to be advised- Gibt zurück:
- the advised object
-
advice
Beschreibung aus Schnittstelle kopiert:AdviceService
Advice the object with a list of AvalonInterceptorServices.- Angegeben von:
advice
in SchnittstelleAdviceService
- Parameter:
interceptorList
- the list of service namesobject
- the object to be advised- Gibt zurück:
- the advised object
-
advice
Beschreibung aus Schnittstelle kopiert:AdviceService
Advice the object with a list of AvalonInterceptorServices.- Angegeben von:
advice
in 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:AdviceService
Is the given object already adviced?- Angegeben von:
isAdviced
in 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.
-