org.gcube.smartgears.handlers.application.lifecycle
Class ProfileManager
java.lang.Object
org.gcube.smartgears.handlers.AbstractHandler
org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler
org.gcube.smartgears.handlers.application.lifecycle.ProfileManager
- All Implemented Interfaces:
- ApplicationHandler<ApplicationLifecycleHandler>, Handler<ApplicationEvent<ApplicationLifecycleHandler>>
public class ProfileManager
- extends ApplicationLifecycleHandler
Manages the resource profile of the application.
The manager:
- creates the profile when the application starts for the first time;
- loads the profile when the application restarts;
- publishes the profile when the application becomes active, and at any lifecycle change thereafter;
- stores the profile locally after each publication;
- Author:
- Fabio Simeoni
- See Also:
ProfileBuilder,
ProfilePublisher
ProfileManager
public ProfileManager()
onStart
public void onStart(ApplicationLifecycleEvent.Start e)
- Description copied from class:
ApplicationLifecycleHandler
- Invoked when the container starts a managed app.
- Overrides:
onStart in class ApplicationLifecycleHandler
- Parameters:
e - the event
toString
public String toString()
- Overrides:
toString in class AbstractHandler
Copyright © 2014. All Rights Reserved.