Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

In order to add the GroovyServer to the application, I added the following lines to the Spring appContext.xml file:

Code Block
xml
borderStylexmlsolid
titleappContext.xmlxml
borderStylesolid
<bean id="shirtService" class="org.pimpmyshirt.service.ShirtServiceImpl" />

<bean id="contextWrapper" class="org.pimpmyshirt.spring.ApplicationContextWrapper" />

<bean id="groovyService" abstract="true" init-method="initialize" destroy-method="destroy">
    <property name="bindings">
        <map>
             <entry key="context" value-ref="contextWrapper" />
            <entry key="shirtService" value-ref="shirtService" />
        </map>
    </property>
</bean>

<bean id="groovyShellService" class="com.iterative.groovy.service.GroovyShellService" parent="groovyService">
    <property name="socket" value="6789" />
    <property name="launchAtStart" value="true" />
</bean>

<bean id="groovyConsoleService" class="com.iterative.groovy.service.GroovyConsoleService" parent="groovyService" />

...