Class ProfilePublisherImpl

  • All Implemented Interfaces:
    ProfilePublisher

    public class ProfilePublisherImpl
    extends Object
    implements ProfilePublisher
    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 Detail

      • ProfilePublisherImpl

        public ProfilePublisherImpl​(ContainerContext context)
        Creates an instance for the container.
        Parameters:
        context - the context of the application
    • Method Detail

      • addTo

        public void addTo​(Collection<String> tokens)
        Adds the current resource profile of the application in one or more scopes. The scopes are retrieved from tokens
        Specified by:
        addTo in interface ProfilePublisher
        Parameters:
        tokens - the tokens
      • addToAll

        public void addToAll()
        Adds the current resource profile of the application in one or more scopes.
        Specified by:
        addToAll in interface ProfilePublisher
      • update

        public void update()
        Updates the current resource profile of the application in its current scopes.
        Specified by:
        update in interface ProfilePublisher