public class ProfilePublisherImpl extends Object implements ProfilePublisher
Distinguishes publication in new scopes (#addTo(List) from publication updates in existing scopes (update().
| Constructor and Description |
|---|
ProfilePublisherImpl(ApplicationContext context)
Creates an instance for a given application.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTo(Collection<String> tokens)
Adds for the first time the current resource profile of the application in one or more scopes.
|
void |
addToAll() |
void |
removeFrom(Collection<String> tokens)
Removes the application from one or more scopes.
|
void |
update() |
public ProfilePublisherImpl(ApplicationContext context)
context - the context of the applicationpublic void addTo(Collection<String> tokens)
addTo in interface ProfilePublisherscopes - the scopespublic void addToAll()
addToAll in interface ProfilePublisherpublic void update()
update in interface ProfilePublisherpublic void removeFrom(Collection<String> tokens)
removeFrom in interface ProfilePublisherscopes - the scopesCopyright © 2022. All Rights Reserved.