npublic class ServiceImpl
implements Service {
n private int timeout;
n private
AccountDao accountDao;
n
n
public void setTimeout(int timeout) {
n this.timeout = timeout;
n }
n
n public
void setAccountDao(AccountDao accountDao) {
n this.accountDao = accountDao;
n }
n
n public
void doSomething() throws ServiceWithdrawnException {
n }
n}
n
n<bean id="serviceTarget"
class="com.mycompany.service.ServiceImpl">
n <property
name="timeout"><value>30</timeout></property>
n <property
name="accountDao"><ref
local="accountDao"/></property>
n</bean>
n