|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.yaafi.interceptor.baseservice.BaseInterceptorServiceImpl
public class BaseInterceptorServiceImpl
A base service providing common functionality for interceptors
| Field Summary |
|---|
| Fields inherited from interface org.apache.fulcrum.yaafi.framework.interceptor.AvalonInterceptorService |
|---|
ON_ENTRY, ON_ERROR, ON_EXIT |
| Constructor Summary | |
|---|---|
BaseInterceptorServiceImpl()
Constructor |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseInterceptorServiceImpl()
| Method Detail |
|---|
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)
AvalonInterceptorService
onEntry in interface AvalonInterceptorServiceavalonInterceptorContext - shared interceptor contextAvalonInterceptorService.onEntry(org.apache.fulcrum.yaafi.framework.interceptor.AvalonInterceptorContext)
public void onError(AvalonInterceptorContext avalonInterceptorContext,
Throwable t)
AvalonInterceptorService
onError 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)
AvalonInterceptorService
onExit 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 context
protected 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 filename
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||