<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" 
	"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
 
	<!-- DEFAULT GLOBAL CONTEXT -->
	<bean id="global.clientRegistry" class="org.red5.server.ClientRegistry" />

	<bean id="global.serviceInvoker" class="org.red5.server.service.ServiceInvoker">
		<property name="serviceResolvers">
			<list>
				<bean id="scopeServiceResolver"
					class="org.red5.server.service.ScopeServiceResolver" />
				<bean id="handlerServiceResolver"
					class="org.red5.server.service.HandlerServiceResolver" />
				<bean id="contextServiceResolver"
					class="org.red5.server.service.ContextServiceResolver" />
			</list>
		</property>
	</bean>

	<bean id="global.mappingStrategy" class="org.red5.server.MappingStrategy"/>

	<bean id="global.context" class="org.red5.server.Context">
		<property name="scopeResolver" ref="red5.scopeResolver" />
		<property name="clientRegistry" ref="global.clientRegistry" />
		<property name="serviceInvoker" ref="global.serviceInvoker" />
		<property name="mappingStrategy" ref="global.mappingStrategy" />
	</bean>

	<bean id="global.handler" class="org.red5.server.CoreHandler"/>

	<bean id="global.scope" class="org.red5.server.GlobalScope" init-method="register">
		<property name="server" ref="red5.server" />
		<property name="name" value="default" />
		<property name="context" ref="global.context" />
		<property name="handler" ref="global.handler" />
		<property name="persistenceClass">
			<value>org.red5.server.persistence.FilePersistence</value>
		</property>
	</bean> 
 
 	<bean id="red5.scopeResolver" class="org.red5.server.ScopeResolver">
		<property name="globalScope" ref="global.scope" />
	</bean>
 
    <bean id="installer.service" class="org.red5.server.service.Installer">
        <property name="applicationRepositoryUrl" value="@application.repository.url@" />
    </bean>
 
</beans>