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
-
Feldübersicht
Von Schnittstelle geerbte Felder org.apache.fulcrum.yaafi.framework.interceptor.AvalonInterceptorService
ON_ENTRY, ON_ERROR, ON_EXIT -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidconfigure(org.apache.avalon.framework.configuration.Configuration configuration) voidcontextualize(org.apache.avalon.framework.context.Context context) protected ClassLoaderprotected Fileprotected org.apache.avalon.framework.service.ServiceManagerprotected Stringprotected Fileprotected booleanprotected booleanisServiceMonitored(AvalonInterceptorContext avalonInterceptorContext) Determine if the given service is monitored.protected FilemakeAbsoluteFile(String name) Determines the file location of the given name.voidonEntry(AvalonInterceptorContext avalonInterceptorContext) Called before a service method is invoked.voidonError(AvalonInterceptorContext avalonInterceptorContext, Throwable t) Called when a service method throws an exeptionvoidonExit(AvalonInterceptorContext avalonInterceptorContext, Object result) Called after a service method was invoked.voidreconfigure(org.apache.avalon.framework.configuration.Configuration configuration) Von Klasse geerbte Methoden org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
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:
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:
-
onEntry
Beschreibung aus Schnittstelle kopiert:AvalonInterceptorServiceCalled before a service method is invoked.- Angegeben von:
onEntryin SchnittstelleAvalonInterceptorService- Parameter:
avalonInterceptorContext- shared interceptor context- Siehe auch:
-
onError
Beschreibung aus Schnittstelle kopiert:AvalonInterceptorServiceCalled when a service method throws an exeption- Angegeben von:
onErrorin SchnittstelleAvalonInterceptorService- Parameter:
avalonInterceptorContext- shared interceptor contextt- the resulting exception- Siehe auch:
-
onExit
Beschreibung aus Schnittstelle kopiert:AvalonInterceptorServiceCalled after a service method was invoked.- Angegeben von:
onExitin SchnittstelleAvalonInterceptorService- Parameter:
avalonInterceptorContext- shared interceptor contextresult- the result of the invocation- Siehe auch:
-
isEnabled
protected boolean isEnabled()- Gibt zurück:
- Returns the isEnabled.
-
isServiceMonitored
Determine if the given service is monitored.- Parameter:
avalonInterceptorContext- interceptor context- Gibt zurück:
- true if the service is monitored or false otherwise
-
getServiceApplicationDir
- Gibt zurück:
- Returns the serviceApplicationDir.
-
getServiceManager
protected org.apache.avalon.framework.service.ServiceManager getServiceManager()- Gibt zurück:
- Returns the serviceManager.
-
getServiceName
- Gibt zurück:
- Returns the serviceName.
-
getServiceTempDir
- Gibt zurück:
- Returns the serviceTempDir.
-
getClassLoader
- Gibt zurück:
- Returns the classLoader.
-
makeAbsoluteFile
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
-