public class BaseInterceptorServiceImpl extends org.apache.avalon.framework.logger.AbstractLogEnabled implements AvalonInterceptorService, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.configuration.Reconfigurable
ON_ENTRY, ON_ERROR, ON_EXIT| Constructor and Description |
|---|
BaseInterceptorServiceImpl()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration) |
void |
contextualize(org.apache.avalon.framework.context.Context context) |
protected ClassLoader |
getClassLoader() |
protected File |
getServiceApplicationDir() |
protected org.apache.avalon.framework.service.ServiceManager |
getServiceManager() |
protected String |
getServiceName() |
protected File |
getServiceTempDir() |
protected boolean |
isEnabled() |
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 exeption
|
void |
onExit(AvalonInterceptorContext avalonInterceptorContext,
Object result)
Called after a service method was invoked.
|
void |
reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) |
public BaseInterceptorServiceImpl()
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
contextualize in interface org.apache.avalon.framework.context.Contextualizableorg.apache.avalon.framework.context.ContextExceptionContextualizable.contextualize(org.apache.avalon.framework.context.Context)public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionConfigurable.configure(org.apache.avalon.framework.configuration.Configuration)public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
reconfigure in interface org.apache.avalon.framework.configuration.Reconfigurableorg.apache.avalon.framework.configuration.ConfigurationExceptionReconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)public void onEntry(AvalonInterceptorContext avalonInterceptorContext)
AvalonInterceptorServiceonEntry in interface AvalonInterceptorServiceavalonInterceptorContext - shared interceptor contextAvalonInterceptorService.onEntry(org.apache.fulcrum.yaafi.framework.interceptor.AvalonInterceptorContext)public void onError(AvalonInterceptorContext avalonInterceptorContext, Throwable t)
AvalonInterceptorServiceonError in interface AvalonInterceptorServiceavalonInterceptorContext - shared interceptor contextt - the resulting exceptionAvalonInterceptorService.onError(org.apache.fulcrum.yaafi.framework.interceptor.AvalonInterceptorContext, java.lang.Throwable)public void onExit(AvalonInterceptorContext avalonInterceptorContext, Object result)
AvalonInterceptorServiceonExit in interface AvalonInterceptorServiceavalonInterceptorContext - shared interceptor contextresult - the result of the invocationAvalonInterceptorService.onExit(org.apache.fulcrum.yaafi.framework.interceptor.AvalonInterceptorContext, java.lang.Object)protected boolean isEnabled()
protected boolean isServiceMonitored(AvalonInterceptorContext avalonInterceptorContext)
avalonInterceptorContext - interceptor contextprotected File getServiceApplicationDir()
protected org.apache.avalon.framework.service.ServiceManager getServiceManager()
protected String getServiceName()
protected File getServiceTempDir()
protected ClassLoader getClassLoader()
protected File makeAbsoluteFile(String name)
name - the filenameCopyright © 2004–1970 The Apache Software Foundation. All rights reserved.