org.gcube.smartgears.handlers.application.lifecycle
Class ProfilePublisher

java.lang.Object
  extended by org.gcube.smartgears.handlers.application.lifecycle.ProfilePublisher

public class ProfilePublisher
extends Object

Publishes the current resource profile of the application.

Distinguishes publication in new scopes (#addTo(List) from publication updates in existing scopes (update().

Author:
Fabio Simeoni

Constructor Summary
ProfilePublisher(ApplicationContext context)
          Creates an instance for a given application.
 
Method Summary
 void addTo(Collection<String> scopes)
          Adds for the first time the current resource profile of the application in one or more scopes.
 void removeFrom(Collection<String> scopes)
          Removes the application from one or more scopes.
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfilePublisher

public ProfilePublisher(ApplicationContext context)
Creates an instance for a given application.

Parameters:
context - the context of the application
Method Detail

addTo

public void addTo(Collection<String> scopes)
Adds for the first time the current resource profile of the application in one or more scopes.

Parameters:
scopes - the scopes

update

public void update()

removeFrom

public void removeFrom(Collection<String> scopes)
Removes the application from one or more scopes.

Parameters:
scopes - the scopes


Copyright © 2013. All Rights Reserved.