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

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

public class ProfilePublisher
extends Object

Publishes the resource profile of the container.

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

Author:
Fabio Simeoni

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

Constructor Detail

ProfilePublisher

public ProfilePublisher(ContainerContext context)
Creates an instance for the container.

Parameters:
context - the context of the application
Method Detail

addTo

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

Parameters:
scopes - the scopes

update

public void update()
Updates the current resource profile of the application in its current scopes.



Copyright © 2013. All Rights Reserved.