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
Post a Comment