Klasse BaseInterceptorServiceImpl

java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.yaafi.interceptor.baseservice.BaseInterceptorServiceImpl
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, AvalonInterceptorService
Bekannte direkte Unterklassen:
JamonInterceptorServiceImpl, JavaSimonInterceptorServiceImpl, LoggingInterceptorServiceImpl, PerformanceInterceptorServiceImpl

public class BaseInterceptorServiceImpl extends org.apache.avalon.framework.logger.AbstractLogEnabled implements AvalonInterceptorService, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.configuration.Reconfigurable
A base service providing common functionality for interceptors
Autor:
Siegfried Goeschl
  • Konstruktordetails

    • BaseInterceptorServiceImpl

      public BaseInterceptorServiceImpl()
      Constructor
  • Methodendetails

    • 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)
    • onEntry

      public void onEntry(AvalonInterceptorContext avalonInterceptorContext)
      Beschreibung aus Schnittstelle kopiert: AvalonInterceptorService
      Called before a service method is invoked.
      Angegeben von:
      onEntry in Schnittstelle AvalonInterceptorService
      Parameter:
      avalonInterceptorContext - shared interceptor context
      Siehe auch:
    • onError

      public void onError(AvalonInterceptorContext avalonInterceptorContext, Throwable t)
      Beschreibung aus Schnittstelle kopiert: AvalonInterceptorService
      Called when a service method throws an exeption
      Angegeben von:
      onError in Schnittstelle AvalonInterceptorService
      Parameter:
      avalonInterceptorContext - shared interceptor context
      t - the resulting exception
      Siehe auch:
    • onExit

      public void onExit(AvalonInterceptorContext avalonInterceptorContext, Object result)
      Beschreibung aus Schnittstelle kopiert: AvalonInterceptorService
      Called after a service method was invoked.
      Angegeben von:
      onExit in Schnittstelle AvalonInterceptorService
      Parameter:
      avalonInterceptorContext - shared interceptor context
      result - the result of the invocation
      Siehe auch:
    • isEnabled

      protected boolean isEnabled()
      Gibt zurück:
      Returns the isEnabled.
    • isServiceMonitored

      protected boolean isServiceMonitored(AvalonInterceptorContext avalonInterceptorContext)
      Determine if the given service is monitored.
      Parameter:
      avalonInterceptorContext - interceptor context
      Gibt zurück:
      true if the service is monitored or false otherwise
    • getServiceApplicationDir

      protected File getServiceApplicationDir()
      Gibt zurück:
      Returns the serviceApplicationDir.
    • getServiceManager

      protected org.apache.avalon.framework.service.ServiceManager getServiceManager()
      Gibt zurück:
      Returns the serviceManager.
    • getServiceName

      protected String getServiceName()
      Gibt zurück:
      Returns the serviceName.
    • getServiceTempDir

      protected File getServiceTempDir()
      Gibt zurück:
      Returns the serviceTempDir.
    • getClassLoader

      protected ClassLoader getClassLoader()
      Gibt zurück:
      Returns the classLoader.
    • makeAbsoluteFile

      protected File makeAbsoluteFile(String name)
      Determines the file location of the given name. If the name denotes a relative file location it will be resolved using the application home directory.
      Parameter:
      name - the filename
      Gibt zurück:
      the file