Skip to content

Commit

Permalink
#1 adjust scope of config service to singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-conway committed Aug 16, 2019
1 parent e45103e commit f13f429
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.context.WebApplicationContext;

import com.emc.metalnx.services.interfaces.ConfigService;

Expand All @@ -25,7 +22,7 @@
*/
@Service
@Transactional
@Scope(value = WebApplicationContext.SCOPE_SESSION, proxyMode = ScopedProxyMode.INTERFACES)
//@Scope(value = WebApplicationContext.SCOPE_SESSION, proxyMode = ScopedProxyMode.INTERFACES)
public class ConfigServiceImpl implements ConfigService {

public final static Logger logger = LoggerFactory.getLogger(ConfigServiceImpl.class);
Expand Down Expand Up @@ -94,7 +91,7 @@ public class ConfigServiceImpl implements ConfigService {
* Secret for jwt creation. Note that the underlying property should be treated
* as secret data with appropriate controls
*/
@Value("${jwt.secret")
@Value("${jwt.secret}")
private String jwtSecret;

/**
Expand Down

0 comments on commit f13f429

Please sign in to comment.