Source

JEEMax / JacpFXChatWebsocketClient / 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.chat.workbench.Workbench">
        <property name="perspectives">
            <list>
                <ref bean="perspectiveOne"/>
            </list>
        </property>
    </bean>


    <bean id="perspectiveOne" class="org.jacp.chat.perspectives.PerspectiveOne">
        <property name="subcomponents">
            <list>
                <ref bean="userView"/>
                <ref bean="chatView"/>
                <ref bean="webSocketEndpoint"/>
            </list>
        </property>
    </bean>


    <bean id="userView" class="org.jacp.chat.components.UserView"/>

    <bean id="chatView" class="org.jacp.chat.components.ChatView"/>

    <bean id="webSocketEndpoint" class="org.jacp.chat.callbacks.WebSocketEndpoint"/>

</beans>