public class ProfilePublisher extends Object
Distinguishes publication in new scopes (#addTo(List) from publication updates in existing scopes (#update(List).
| Constructor and Description |
|---|
ProfilePublisher(ContainerContext context)
Creates an instance for the container.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTo(Collection<String> tokens)
Adds the current resource profile of the application in one or more
scopes.
|
void |
addToAll()
Adds the current resource profile of the application in one or more scopes.
|
void |
removeFrom(Collection<String> tokens)
Removes the container from one or more scopes.
|
void |
update()
Updates the current resource profile of the application in its current scopes.
|
public ProfilePublisher(ContainerContext context)
context - the context of the applicationpublic void addTo(Collection<String> tokens)
tokens - the tokenspublic void addToAll()
public void update()
public void removeFrom(Collection<String> tokens)
tokens - the tokensCopyright © 2020. All Rights Reserved.