<?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" 
		autowire="byType" />

	<bean id="global.handler" class="org.red5.server.CoreHandler" autowire="byType" />
			
	<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>
	
	
</beans>
