Skip to content

Commit

Permalink
0004361: set filter on node service, fix deprecated spring class
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Apr 22, 2020
1 parent 28b6fab commit dbd3bf8
Showing 1 changed file with 8 additions and 2 deletions.
Expand Up @@ -66,21 +66,23 @@
import org.jumpmind.symmetric.io.stage.IStagingManager;
import org.jumpmind.symmetric.job.IJobManager;
import org.jumpmind.symmetric.job.JobManager;
import org.jumpmind.symmetric.security.INodePasswordFilter;
import org.jumpmind.symmetric.service.IExtensionService;
import org.jumpmind.symmetric.service.IMonitorService;
import org.jumpmind.symmetric.service.impl.ClientExtensionService;
import org.jumpmind.symmetric.service.impl.MonitorService;
import org.jumpmind.symmetric.service.impl.NodeService;
import org.jumpmind.symmetric.statistic.IStatisticManager;
import org.jumpmind.symmetric.statistic.StatisticManager;
import org.jumpmind.symmetric.util.LogSummaryAppenderUtils;
import org.jumpmind.symmetric.util.SnapshotUtil;
import org.jumpmind.symmetric.util.SymmetricUtils;
import org.jumpmind.symmetric.util.TypedPropertiesFactory;
import org.jumpmind.util.AppUtils;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.jndi.JndiObjectFactoryBean;
import org.xml.sax.InputSource;

Expand Down Expand Up @@ -206,7 +208,7 @@ protected void init() {
clusterService, contextService);
this.dataSource = platform.getDataSource();

PropertyPlaceholderConfigurer configurer = new PropertyPlaceholderConfigurer();
PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceholderConfigurer();
configurer.setProperties(parameterService.getAllParameters());

ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(springContext);
Expand Down Expand Up @@ -250,6 +252,10 @@ protected void init() {
"Failed to initialize the extension points. Please fix the problem and restart the server.",
ex);
}

if (nodeService instanceof NodeService) {
((NodeService)nodeService).setNodePasswordFilter(extensionService.getExtensionPoint(INodePasswordFilter.class));
}
} catch (RuntimeException ex) {
destroy();
throw ex;
Expand Down

0 comments on commit dbd3bf8

Please sign in to comment.