java - Spring Scanner bean -


i trying configure scanner bean in spring, figure close to:

<bean id="input" class="java.util.scanner">     <constructor-arg type="inputstream"><value>java.lang.system.in</value></constructor-arg> </bean> 

i wondering if there way this? if not, please supply reason.

i'm not sure, want achive this,

you can create inputstream spring bean,

<bean id="stream" class="java.io.inputstream">  <bean id="input" class="java.util.scanner">         <constructor-arg index="0"><ref bean="stream"/></constructor-arg> </bean> 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -