diff --git a/src/main/java/org/gcube/applicationsupportlayer/social/ScopeBeanExt.java b/src/main/java/org/gcube/applicationsupportlayer/social/ScopeBeanExt.java index 88dbe71..fb62f0b 100644 --- a/src/main/java/org/gcube/applicationsupportlayer/social/ScopeBeanExt.java +++ b/src/main/java/org/gcube/applicationsupportlayer/social/ScopeBeanExt.java @@ -1,18 +1,23 @@ package org.gcube.applicationsupportlayer.social; import org.gcube.common.scope.impl.ScopeBean; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public class ScopeBeanExt extends ScopeBean { - + private static final Logger _log = LoggerFactory.getLogger(ScopeBeanExt.class); + private String context; public ScopeBeanExt(String scope) throws IllegalArgumentException { super(scope); + _log.trace("ScopeBeanExt instanciated with context " + scope); + this.context = scope; } /** * * @return the infrastructure scope e.g. /gcube */ public String getInfrastructureScope() { - String[] components = name().split(separator); + String[] components = this.context.split(separator); return separator+components[1]; }