@Override public void setup(JDBCIdentityStoreConfiguration config) { super.setup(config); this.dataSource = config.getDataSource(); Map<String,Class<?>> customClassMapping = config.getCustomClassMapping(); if(customClassMapping != null){ Set<String> keyset = customClassMapping.keySet(); for(String key: keyset){ JdbcMapper.map(key,customClassMapping.get(key)); } } }
@Override protected JDBCIdentityStoreConfiguration create() { if(jdbcIdentityStoreConfiguration == null){ jdbcIdentityStoreConfiguration = new JDBCIdentityStoreConfiguration(getSupportedTypes(), getUnsupportedTypes(), getContextInitializers(), getCredentialHandlerProperties(), getCredentialHandlers(), isSupportAttributes(), isSupportCredentials(), isSupportPermissions()); } if(dataSource != null){ jdbcIdentityStoreConfiguration.setDataSource(dataSource); } jdbcIdentityStoreConfiguration.setCustomClassMapping(customClassMapping); return jdbcIdentityStoreConfiguration; }
@Override protected JDBCIdentityStoreConfiguration create() { if(jdbcIdentityStoreConfiguration == null){ jdbcIdentityStoreConfiguration = new JDBCIdentityStoreConfiguration(getSupportedTypes(), getUnsupportedTypes(), getContextInitializers(), getCredentialHandlerProperties(), getCredentialHandlers(), isSupportAttributes(), isSupportCredentials(), isSupportPermissions()); } if(dataSource != null){ jdbcIdentityStoreConfiguration.setDataSource(dataSource); } jdbcIdentityStoreConfiguration.setCustomClassMapping(customClassMapping); return jdbcIdentityStoreConfiguration; }
@Override public void setup(JDBCIdentityStoreConfiguration config) { super.setup(config); this.dataSource = config.getDataSource(); Map<String,Class<?>> customClassMapping = config.getCustomClassMapping(); if(customClassMapping != null){ Set<String> keyset = customClassMapping.keySet(); for(String key: keyset){ JdbcMapper.map(key,customClassMapping.get(key)); } } }