<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
	
	<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
	    <property name="location" value="/WEB-INF/red5-web.properties" />
	</bean>
	
	<bean id="web.context" class="org.red5.server.Context" 
		autowire="byType" />
	
	<bean id="web.scope" class="org.red5.server.WebScope"
		 init-method="register">
		<property name="server" ref="red5.server" />
		<property name="parent" ref="global.scope" />
		<property name="context" ref="web.context" />
		<property name="handler" ref="web.handler" />
		<property name="contextPath" value="${webapp.contextPath}" />
		<property name="virtualHosts" value="${webapp.virtualHosts}" />
	</bean>

	<bean id="web.handler" 
	    class="com.videowhisper.Application" 
		singleton="true" >
	<property name="withLogging" value="${withLogging}" />
	<property name="logFilename" value="${logFilename}" />
	<property name="allowedDomains" value="${allowedDomains}" />
	<property name="recordEverything" value="${recordEverything}" />
	<property name="acceptPlayers" value="${acceptPlayers}" />
	</bean>
	
	<bean id="streamFilenameGenerator" 
    class="com.videowhisper.CustomFilenameGenerator" >
	<property name="recordPath" value="${recordPath}" /> 
    <property name="playbackPath" value="${playbackPath}" /> 
    <property name="absolutePath" value="${absolutePath}" />
	</bean>

</beans>

