Class OnlineObserver
java.lang.Object
org.gcube.smartgears.application.manager.OnlineObserver
- All Implemented Interfaces:
AppManagerObserver
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassAnnounces that the application has finished initializing itself in a Context, once theonInitof every manager there has ended, well or not.classclassclass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPublished(org.gcube.smartgears.publishing.Publication publication) Tells the managers of the Contexts the resource of the application has just reached in a system, one after the other.voidonRegistration(String context) Initializes the application managers in the given Context, unless they already are.voidvoidonStop(org.gcube.smartgears.context.application.ApplicationContext appContext) voidregister()Initializes the application managers in the Contexts of the container already known.voidsetApplicationManagerClasses(Set<Class<? extends ApplicationManager>> managersClasses) voidsetAuthorizationProvider(org.gcube.common.security.factories.AuthorizationProvider authProvider) void
-
Constructor Details
-
OnlineObserver
-
-
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 asConstants.token_registeredevents from the container.- Specified by:
registerin interfaceAppManagerObserver
-
onRegistration
Initializes the application managers in the given Context, unless they already are.- Specified by:
onRegistrationin interfaceAppManagerObserver- Parameters:
context- the Context
-
onPublished
public void onPublished(org.gcube.smartgears.publishing.Publication publication) Tells the managers of the Contexts the resource of the application has just reached in a system, one after the other. The managers of a Context are told once, and again if the resource leaves the Context and comes back; the ones not initialized yet are told when they are.- Parameters:
publication- where the application is published in the system
-
onRemove
- Specified by:
onRemovein interfaceAppManagerObserver
-
onStop
public void onStop(org.gcube.smartgears.context.application.ApplicationContext appContext) - Specified by:
onStopin interfaceAppManagerObserver
-
unregister
public void unregister()- Specified by:
unregisterin interfaceAppManagerObserver
-
setAuthorizationProvider
public void setAuthorizationProvider(org.gcube.common.security.factories.AuthorizationProvider authProvider) - Specified by:
setAuthorizationProviderin interfaceAppManagerObserver
-
setApplicationManagerClasses
- Specified by:
setApplicationManagerClassesin interfaceAppManagerObserver
-