[Geoserver-devel] [jira] (GEOS-6618) Add wildcard advice interceptors to OWS Service application contexts

Tom Ingold created an issue

GeoServer / ImprovementGEOS-6618

Add wildcard advice interceptors to OWS Service application contexts

Issue Type:

ImprovementImprovement

Assignee:

Justin Deoliveira

Components:

CSW, WCS, WFS, WPS

Created:

15/Aug/14 2:56 PM

Environment:

wcs 1.0
wcs 1.1
wps
csw

Priority:

MinorMinor

Reporter:

Tom Ingold

Looking at the applicationContext for WMS there is a chunk of XML (see below) that allows beans with IDs matching the pattern “wmsServiceInterceptor*” to be included in the list of proxy beans. These beans can intercept method calls to the WMS service bean allowing extensibility for things like logging and monitoring.

The wildcard is currently present in the WMS and WCS 2.0 application contexts however is missing from the WFS, CSW, WPS, WCS 1.1 and WCS 1.0 contexts.

Can we add appropriate wildcards in these applicationContexts too? If you assign to me I’ll gladly submit the patches.

<bean id=“wmsService2” class=“org.springframework.aop.framework.ProxyFactoryBean”>
<property name=“proxyInterfaces”>
<value>org.geoserver.wms.WebMapService</value>
</property>
<property name=“targetName”>
<value>wmsServiceTarget</value>
</property>
<property name=“interceptorNames”>
<list>
<value>wmsLogger</value>
<!-- allow any other advise defined elsewhere and named “wmsServiceInterceptor*”
to be added to the interceptors list –>
<value>wmsServiceInterceptor*</value>
</list>
</property>
</bean>

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo