Source

JEEMax / JacpFXTwitterWebsocketClient / src / main / resources / main.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
	http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
	http://www.springframework.org/schema/context 
	http://www.springframework.org/schema/context/spring-context-3.0.xsd">

    <context:component-scan base-package="org.jacp.twitter"/>
    <context:annotation-config/>

    <bean id="workbench" class="org.jacp.twitter.workbench.Workbench">
        <property name="perspectives">
            <list>
                <ref bean="perspectiveOne"/>
            </list>
        </property>
    </bean>


    <bean id="perspectiveOne" class="org.jacp.twitter.perspectives.PerspectiveOne">
        <property name="subcomponents">
            <list>
                <ref bean="tweetView"/>
                <ref bean="queryView"/>
                <ref bean="twitterEndpointComponent"/>
            </list>
        </property>
    </bean>


    <bean id="tweetView" class="org.jacp.twitter.components.TweetView"/>
    <bean id="queryView" class="org.jacp.twitter.components.QueryView"/>

    <bean id="twitterEndpointComponent" class="org.jacp.twitter.callbacks.TwitterEndpointComponent"/>

</beans>