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
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    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.
    void
    configure(org.apache.avalon.framework.configuration.Configuration configuration)
     
    void
    contextualize(org.apache.avalon.framework.context.Context context)
     
    protected Object
    doAdvice(String name, String[] interceptorList, Object object)
    Does the actual work of advising the object.
    boolean
    isAdviced(Object object)
    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

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 Schnittstelle org.apache.avalon.framework.service.Serviceable
      Löst aus:
      org.apache.avalon.framework.service.ServiceException
      Siehe auch:
      • Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
    • contextualize

      public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
      Angegeben von:
      contextualize in Schnittstelle org.apache.avalon.framework.context.Contextualizable
      Löst aus:
      org.apache.avalon.framework.context.ContextException
      Siehe auch:
      • Contextualizable.contextualize(org.apache.avalon.framework.context.Context)
    • configure

      public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
      Angegeben von:
      configure in Schnittstelle org.apache.avalon.framework.configuration.Configurable
      Löst aus:
      org.apache.avalon.framework.configuration.ConfigurationException
      Siehe auch:
      • Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
    • reconfigure

      public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
      Angegeben von:
      reconfigure in Schnittstelle org.apache.avalon.framework.configuration.Reconfigurable
      Löst aus:
      org.apache.avalon.framework.configuration.ConfigurationException
      Siehe auch:
      • Reconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)
    • advice

      public Object advice(Object object)
      Beschreibung aus Schnittstelle kopiert: AdviceService
      Advice the object with a the list of default AvalonInterceptorServices.
      Angegeben von:
      advice in Schnittstelle AdviceService
      Parameter:
      object - the object to be advised
      Gibt zurück:
      the advised object
      Siehe auch:
    • advice

      public Object advice(String name, Object object)
      Beschreibung aus Schnittstelle kopiert: AdviceService
      Advice the object with a the list of default AvalonInterceptorServices.
      Angegeben von:
      advice in Schnittstelle AdviceService
      Parameter:
      name - the name of the object
      object - the object to be advised
      Gibt zurück:
      the advised object
    • advice

      public Object advice(String[] interceptorList, Object object)
      Beschreibung aus Schnittstelle kopiert: AdviceService
      Advice the object with a list of AvalonInterceptorServices.
      Angegeben von:
      advice in Schnittstelle AdviceService
      Parameter:
      interceptorList - the list of service names
      object - the object to be advised
      Gibt zurück:
      the advised object
    • advice

      public Object advice(String name, String[] interceptorList, Object object)
      Beschreibung aus Schnittstelle kopiert: AdviceService
      Advice the object with a list of AvalonInterceptorServices.
      Angegeben von:
      advice in Schnittstelle AdviceService
      Parameter:
      name - the associated name of the object
      interceptorList - the list of service names
      object - the object to be advised
      Gibt zurück:
      the advised object
    • isAdviced

      public boolean isAdviced(Object object)
      Beschreibung aus Schnittstelle kopiert: AdviceService
      Is the given object already adviced?
      Angegeben von:
      isAdviced in Schnittstelle AdviceService
      Parameter:
      object - the object to check
      Gibt zurück:
      true if the object is an dynamic proxy
    • doAdvice

      protected Object doAdvice(String name, String[] interceptorList, Object object)
      Does the actual work of advising the object.
      Parameter:
      name - the name of the object to be advised
      interceptorList - the list of interceptor services to advise the object
      object - the object to be advised
      Gibt zurück:
      the advised object.