Class DelegatingAccessControlService

All Implemented Interfaces:
Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent, UnmodifiableComponent, AccessControlService

public class DelegatingAccessControlService extends AbstractIdentifiableInitializableComponent implements AccessControlService
This class uses the ReloadableService concept to implement AccessControlService to hide the details of pinning and unpinning the underlying service.
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • service

      @Nonnull private final ReloadableService<AccessControlService> service
      The service which manages the reloading.
  • Constructor Details

  • Method Details

    • getInstance

      @Nonnull public AccessControl getInstance(@Nonnull String name)
      Get an AccessControl instance matching a given name.

      In the absence of a matching instance, a default policy that denies access is returned.

      Specified by:
      getInstance in interface AccessControlService
      name - policy name
      the matching instance, or a default