[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matt Giacomini updated ZOOKEEPER-92:
------------------------------------

    Attachment: ZookeeperClientFactoryBean.java
                ZookeeperServerFactoryBean.java

I have made ZookeeperServerFactorBean an actual Spring factory.  

Also adding a ZookeeperClientFactoryBean.

    <bean id="zookeeper" 
class="com.gltech.pawnstorm.spring.ZookeeperClientFactoryBean">
        <property name="connectString" value="localhost:2181"/>
    </bean>

connectString, sessionTimeOut and a watcher can be specified as parameters.  If 
not submitted then reasonable defaults are used.

> spring factory beans for ZooKeeper, ZooKeeperFacade and ZooKeeperServer
> -----------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-92
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-92
>             Project: ZooKeeper
>          Issue Type: Sub-task
>          Components: java client
>            Reporter: james strachan
>         Attachments: ZookeeperClientFactoryBean.java, 
> ZookeeperServerFactoryBean.java, ZookeeperServerFactoryBean.java
>
>
> for folks who use Spring for Dependency Injection it might be handy to have a 
> couple of factory beans to make it easier to create and configure the 
> ZooKeeper, ZooKeeperFacade and ZooKeeperServer via the normal Spring 
> dependency mechanism; via Java or XML code etc

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to