Class EServiceHandler
- java.lang.Object
-
- org.gcube.smartgears.handlers.AbstractHandler
-
- org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler
-
- org.gcube.smartgears.handler.resourceregistry.EServiceHandler
-
- All Implemented Interfaces:
org.gcube.smartgears.handlers.application.ApplicationHandler<org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler>,org.gcube.smartgears.handlers.Handler<org.gcube.smartgears.handlers.application.ApplicationEvent<org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler>>
public class EServiceHandler extends org.gcube.smartgears.handlers.application.ApplicationLifecycleHandlerManages theEServiceResourceof the application.The manager:
- creates the
EServiceResourceand the facets itConsistsOfwhen the application starts for the first time; - update the
StateFacetwhen the application becomes active, and at any lifecycle change thereafter;
- Author:
- Luca Frosini (ISTI-CNR)
-
-
Field Summary
Fields Modifier and Type Field Description protected EServiceManagereServiceManager
-
Constructor Summary
Constructors Constructor Description EServiceHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonStart(org.gcube.smartgears.handlers.application.ApplicationLifecycleEvent.Start event)protected voidremoveResourceFromOldContexts(Set<UUID> startContexts, Set<UUID> resourceContexts)StringtoString()
-
-
-
Field Detail
-
eServiceManager
protected EServiceManager eServiceManager
-
-
Method Detail
-
onStart
public void onStart(org.gcube.smartgears.handlers.application.ApplicationLifecycleEvent.Start event)
- Overrides:
onStartin classorg.gcube.smartgears.handlers.application.ApplicationLifecycleHandler
-
removeResourceFromOldContexts
protected void removeResourceFromOldContexts(Set<UUID> startContexts, Set<UUID> resourceContexts)
-
toString
public String toString()
- Overrides:
toStringin classorg.gcube.smartgears.handlers.AbstractHandler
-
-