Class GlobalScope

  • All Implemented Interfaces:
    com.helger.commons.id.IHasID<String>, IGlobalScope, IScope

    @ThreadSafe
    public class GlobalScope
    extends AbstractScope
    implements IGlobalScope
    Base implementation of the IGlobalScope interface.
    Note: for synchronization issues, this class stores the attributes in a separate map.
    Author:
    Philip Helger
    • Constructor Detail

      • GlobalScope

        public GlobalScope​(@Nonnull @Nonempty
                           String sScopeID)
    • Method Detail

      • initScope

        public void initScope()
        Description copied from interface: IScope
        Init the scope. In contrast to the constructor of a scope, this happens after the scope has been registered in the scope manager.
        Specified by:
        initScope in interface IScope
      • preDestroy

        protected void preDestroy()
        Description copied from class: AbstractScope
        Override this method to perform further actions BEFORE the scope is destroyed. The state is "in pre destruction".
        Overrides:
        preDestroy in class AbstractScope
      • postDestroy

        protected void postDestroy()
        Description copied from class: AbstractScope
        Override this method to perform further actions AFTER the scope was destroyed. The state is "destroyed".
        Overrides:
        postDestroy in class AbstractScope