changes on OnlineObserver
This commit is contained in:
parent
e076dc39de
commit
b65fe507af
|
@ -3,7 +3,6 @@ package org.gcube.smartgears;
|
||||||
import javax.servlet.ServletContext;
|
import javax.servlet.ServletContext;
|
||||||
|
|
||||||
import org.gcube.common.events.Hub;
|
import org.gcube.common.events.Hub;
|
||||||
import org.gcube.common.resources.gcore.GCoreEndpoint;
|
|
||||||
import org.gcube.smartgears.configuration.application.ApplicationConfiguration;
|
import org.gcube.smartgears.configuration.application.ApplicationConfiguration;
|
||||||
import org.gcube.smartgears.context.Properties;
|
import org.gcube.smartgears.context.Properties;
|
||||||
import org.gcube.smartgears.context.application.ApplicationContext;
|
import org.gcube.smartgears.context.application.ApplicationContext;
|
||||||
|
@ -88,11 +87,6 @@ public class ContextProvider {
|
||||||
return delegate.id();
|
return delegate.id();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public GCoreEndpoint profile() {
|
|
||||||
return delegate.profile();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PersistenceWriter persistence() {
|
public PersistenceWriter persistence() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
|
@ -98,7 +98,7 @@ public class OnlineObserver implements AppManagerObserver{
|
||||||
|
|
||||||
public synchronized void onStop(ApplicationContext appContext){
|
public synchronized void onStop(ApplicationContext appContext){
|
||||||
|
|
||||||
for (String context :appContext.configuration().authorizedContexts())
|
for (String context :appContext.container().configuration().authorizationProvider().getContexts())
|
||||||
this.onRemove(context);
|
this.onRemove(context);
|
||||||
|
|
||||||
unregister();
|
unregister();
|
||||||
|
|
Loading…
Reference in New Issue