<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net"
         xmlns:r="http://www.springframework.net/remoting">

	<description>saoSingleton-aop</description>

  <r:saoFactory id="remoteCalculatorService" 
                serviceInterface="Spring.Calculator.Interfaces.IAdvancedCalculator, Spring.Calculator.Contract" 
                serviceUrl="tcp://localhost:8005/RemotedSaoSingletonCalculatorWeaved"/>

  <!--
		Old fashion way without remoting config parser...
	<object id="remoteCalculatorService" type="Spring.Remoting.SaoFactoryObject, Spring.Services">
		<property name="ServiceInterface" value="Spring.Calculator.Interfaces.IAdvancedCalculator, Spring.Calculator.Contract" />
		<property name="ServiceUrl" value="tcp://localhost:8005/RemotedSaoSingletonCalculatorWeaved" />
	</object>
  -->
	
	<object id="calculatorService" type="Spring.Aop.Framework.ProxyFactoryObject, Spring.Aop">
		<property name="target" ref="remoteCalculatorService"/>
		<property name="interceptorNames">
			<list>
				<value>ConsoleLoggingAroundAdvice</value>
			</list>
		</property>
		<property name="ProxyInterfaces">
			<list>
				<value>Spring.Calculator.Interfaces.IAdvancedCalculator, Spring.Calculator.Contract</value>
			</list>
		</property>
	</object>
	
</objects>