This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="wsMonitoringServiceFactoryBean" class="no.soliditet.webservices.monitor1.helper.WSMonitoringServiceFactory"> | |
<lookup-method name="createMonitoringService" bean="monitoringService"/> | |
</bean> | |
<bean id="monitoringService" class="no.lindorff.pro.server.MonitoringServiceImpl" singleton="false"/> | |
public class WSMonitoringServiceFactory{ | |
public abstract MonitoringService getMonitoringService(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="wsMonitoringServiceFactoryBean" class="no.soliditet.webservices.monitor1.helper.WSMonitoringServiceFactory" | |
factory-method="getInstance" singleton="true"> | |
</bean> | |
<bean id="monitoringService" name="monitoringService" class="no.lindorff.pro.server.MonitoringServiceImpl" singleton="false"/> | |
<bean id="myService" class="no.soliditet.webservices.monitor1.helper.MonitoringServiceInjected"> | |
<lookup-method name="getMonitoringService" bean="monitoringService"/> | |
</bean> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* applicationContext: | |
<beans> | |
<bean id="monitoringService" class="no.lindorff.pro.server.MonitoringServiceImpl" singleton="false" /> | |
<bean id="wsMonitoringServiceFactoryBean" class="no.soliditet.webservices.monitor1.helper.WSMonitoringService"> | |
<lookup-method name="createMonitoringService" bean="monitoringService"/> | |
</bean> | |
</beans> | |
*/ | |
//Java, interface +impl: |