TcpSocketTest.xml 1.29 KB
<plexus>
	<components>
		<component>
			<role>com.dianping.cat.message.spi.MessageCodec</role>
			<role-hint>tcp-socket</role-hint>
			<implementation>com.dianping.cat.message.io.TcpSocketTest$MockMessageCodec</implementation>
		</component>
		<component>
			<role>com.dianping.cat.message.io.MessageSender</role>
			<role-hint>tcp-socket</role-hint>
			<implementation>com.dianping.cat.message.io.TcpSocketSender</implementation>
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
					<role>com.dianping.cat.message.spi.MessageCodec</role>
					<role-hint>tcp-socket</role-hint>
					<field-name>m_codec</field-name>
				</requirement>
				<requirement>
					<role>com.dianping.cat.message.spi.MessageQueue</role>
					<field-name>m_queue</field-name>
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.message.io.MessageReceiver</role>
			<role-hint>tcp-socket</role-hint>
			<implementation>com.dianping.cat.message.io.TcpSocketReceiver</implementation>
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
					<role>com.dianping.cat.message.spi.MessageCodec</role>
					<role-hint>tcp-socket</role-hint>
				</requirement>
			</requirements>
		</component>
	</components>
</plexus>