Search in sources :

Example 1 with NoopUserNodeEventHookService

use of net.solarnetwork.central.user.event.noop.NoopUserNodeEventHookService in project solarnetwork-central by SolarNetwork.

the class UserEventServiceNoopConfig method noopUserNodeEventHookService.

@Bean
public UserNodeEventHookService noopUserNodeEventHookService() {
    NoopUserNodeEventHookService service = new NoopUserNodeEventHookService();
    ResourceBundleMessageSource msgSource = new ResourceBundleMessageSource();
    msgSource.setBasenames(NoopUserNodeEventHookService.class.getName());
    service.setMessageSource(msgSource);
    return service;
}
Also used : NoopUserNodeEventHookService(net.solarnetwork.central.user.event.noop.NoopUserNodeEventHookService) ResourceBundleMessageSource(org.springframework.context.support.ResourceBundleMessageSource) Bean(org.springframework.context.annotation.Bean)

Aggregations

NoopUserNodeEventHookService (net.solarnetwork.central.user.event.noop.NoopUserNodeEventHookService)1 Bean (org.springframework.context.annotation.Bean)1 ResourceBundleMessageSource (org.springframework.context.support.ResourceBundleMessageSource)1