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 TypMethodeBeschreibungvoid
configure
(org.apache.avalon.framework.configuration.Configuration configuration) void
contextualize
(org.apache.avalon.framework.context.Context context) protected ClassLoader
protected File
protected org.apache.avalon.framework.service.ServiceManager
protected String
protected File
protected boolean
protected boolean
isServiceMonitored
(AvalonInterceptorContext avalonInterceptorContext) Determine if the given service is monitored.protected File
makeAbsoluteFile
(String name) Determines the file location of the given name.void
onEntry
(AvalonInterceptorContext avalonInterceptorContext) Called before a service method is invoked.void
onError
(AvalonInterceptorContext avalonInterceptorContext, Throwable t) Called when a service method throws an exeptionvoid
onExit
(AvalonInterceptorContext avalonInterceptorContext, Object result) Called after a service method was invoked.void
reconfigure
(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:
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:
-
onEntry
Beschreibung aus Schnittstelle kopiert:AvalonInterceptorService
Called before a service method is invoked.- Angegeben von:
onEntry
in SchnittstelleAvalonInterceptorService
- Parameter:
avalonInterceptorContext
- shared interceptor context- Siehe auch:
-
onError
Beschreibung aus Schnittstelle kopiert:AvalonInterceptorService
Called when a service method throws an exeption- Angegeben von:
onError
in SchnittstelleAvalonInterceptorService
- Parameter:
avalonInterceptorContext
- shared interceptor contextt
- the resulting exception- Siehe auch:
-
onExit
Beschreibung aus Schnittstelle kopiert:AvalonInterceptorService
Called after a service method was invoked.- Angegeben von:
onExit
in 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
-