wink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edd Grant <>
Subject How do I configure a custom HandlersFactory when configuring Wink through Spring?
Date Tue, 22 May 2012 12:20:33 GMT
Hi all,

I am using Wink (1.2.0-incubating) with Spring support (using Spring
3.1.1-RELEASE). I can't for the life of me figure out how to register a
custom HandlersFactory implementation. Currently I'm doing this in my
Spring/Wink application context file as per the instructions here:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""

  <bean class="org.apache.wink.spring.Registrar">
    <property name="instances">
        <ref bean="healthChecker" />

  <bean id="customPropertiesFactory"
    <property name="locations">

  <bean id="customConfigurer"
    <property name="ignoreUnresolvablePlaceholders" value="true" />
    <property name="order" value="1" />
    <property name="propertiesArray">
         <prop key="wink.propertiesFactory">customPropertiesFactory</prop>

Spring is starting up and Wink is being initialised at start-up, I have
tested this through the fact that I can successfully call the
'healthChecker' Spring bean via an HTTP GET. However my HandlersFactory
class never gets registered or called. This used to work fine when using the
init-param servlet Style configuration but has stopped working when moving
over to Spring. I can't find anything in the docs to explain how to
configure this when using Spring. Please could someone advise?

Many thanks,


View this message in context:
Sent from the Apache Wink Users mailing list archive at

View raw message