public class LogFaxClientSpiInterceptor extends AbstractFaxClientSpiInterceptor
Name | Description | Preconfigured Value | Default Value | Mandatory |
org.fax4j.proxy.interceptor.list | A list of interceptor types, separated by a ';' character. Each type must have a matching org.fax4j.proxy.interceptor.type.xxx property. |
log | none | false |
org.fax4j.proxy.interceptor.type.xxx | The interceptor type to class name mapping. | org.fax4j.proxy.interceptor.type.log=org.fax4j.spi.LogFaxClientSpiInterceptor | none | false |
Constructor and Description |
---|
LogFaxClientSpiInterceptor()
This is the default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
initializeImpl()
This function initializes the fax client SPI interceptor.
|
protected void |
logEvent(FaxClientSpiProxy.FaxClientSpiProxyEventType eventType,
Method method,
Object[] arguments,
Object output,
Throwable throwable)
This function logs the event.
|
void |
onMethodInvocationError(Method method,
Object[] arguments,
Throwable throwable)
This function is invoked by the fax client SPI proxy in of an error while invoking the method in the fax client
SPI itself.
|
void |
postMethodInvocation(Method method,
Object[] arguments,
Object output)
This function is invoked by the fax client SPI proxy after invoking the method in the fax client SPI itself.
|
void |
preMethodInvocation(Method method,
Object[] arguments)
This function is invoked by the fax client SPI proxy before invoking the method in the fax client SPI itself.
|
getConfigurationValue, getFaxClientSpi, getLogger, initialize
public LogFaxClientSpiInterceptor()
protected void initializeImpl()
initializeImpl
in class AbstractFaxClientSpiInterceptor
protected void logEvent(FaxClientSpiProxy.FaxClientSpiProxyEventType eventType, Method method, Object[] arguments, Object output, Throwable throwable)
eventType
- The event typemethod
- The method invokedarguments
- The method argumentsoutput
- The method outputthrowable
- The throwable while invoking the methodpublic final void preMethodInvocation(Method method, Object[] arguments)
method
- The method invokedarguments
- The method argumentspublic final void postMethodInvocation(Method method, Object[] arguments, Object output)
method
- The method invokedarguments
- The method argumentsoutput
- The method outputpublic final void onMethodInvocationError(Method method, Object[] arguments, Throwable throwable)
method
- The method invokedarguments
- The method argumentsthrowable
- The throwable while invoking the methodCopyright © 2009–2020 fax4j. All rights reserved.