Java Reference
In-Depth Information
Listing 5-35. PolicyQuoteBusinessDelegateImpl.java
public class PolicyQuoteBusinessDelegateImpl implements
PolicyQuoteBusinessDelegate {
private PolicyQuoteApplicationService service;
public void calculatePolicyQuote(){
this.service.calculatePolicyQuote("GNLIFE", 12, 1000, 10);
}
public PolicyQuoteApplicationService getService() {
return service;
}
public void setService(PolicyQuoteApplicationService service) {
this.service = service;
}
}
Now you can wire up everything in the Spring configuration file, as shown in
Listing 5-36.
Listing 5-36. springws-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=" http://www.springframework.org/schema/beans"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
>
<bean name="policyQuoteDelegate"
class="com.xpress.channel.PolicyQuoteBusinessDelegate" >
<property name="businessService"
ref="policyQuoteWebService" />
</bean>
Search WWH ::




Custom Search