CMServiceConfig.xml structure
The ServiceConfig.xml
and CMServiceConfig.xml
will look like
the following:
<ServiceInterceptors>
<Service name="CMLPXXXX">
<Interceptor action="add">
com.splwg.interceptor.CMLPXXXXAddInterceptor
</Interceptor>
<Interceptor action="change">
com.splwg.interceptor.CMLPXXXXChangeInterceptor
</Interceptor>
</Service>
</ServiceInterceptors>
The above example illustrates how interceptors are defined for the service CMLPXXXX. You can define one or more interceptors, depending on the action, for each service. The valid actions are add, change, delete, and read.
Note: It is valid to have the same interceptor class for more than one action, as long
as the class implements the corresponding interceptor interface.