Class OnlineObserver

java.lang.Object
org.gcube.smartgears.application.manager.OnlineObserver
All Implemented Interfaces:
AppManagerObserver

public class OnlineObserver extends Object implements AppManagerObserver
  • Constructor Details

  • Method Details

    • register

      public void register()
      Initializes the application managers in the Contexts of the container already known. The Contexts which become known later, e.g. when the IAM was unreachable at start-up, arrive as Constants.token_registered events from the container.
      Specified by:
      register in interface AppManagerObserver
    • onRegistration

      public void onRegistration(String context)
      Initializes the application managers in the given Context, unless they already are.
      Specified by:
      onRegistration in interface AppManagerObserver
      Parameters:
      context - the Context
    • onRemove

      public void onRemove(String context)
      Specified by:
      onRemove in interface AppManagerObserver
    • onStop

      public void onStop(org.gcube.smartgears.context.application.ApplicationContext appContext)
      Specified by:
      onStop in interface AppManagerObserver
    • unregister

      public void unregister()
      Specified by:
      unregister in interface AppManagerObserver
    • setAuthorizationProvider

      public void setAuthorizationProvider(org.gcube.common.security.factories.AuthorizationProvider authProvider)
      Specified by:
      setAuthorizationProvider in interface AppManagerObserver
    • setApplicationManagerClasses

      public void setApplicationManagerClasses(Set<Class<? extends ApplicationManager>> managersClasses)
      Specified by:
      setApplicationManagerClasses in interface AppManagerObserver