Class SupplierBackedReloadableService.ServiceableWrapper<U>

java.lang.Object
net.shibboleth.shared.service.SupplierBackedReloadableService.ServiceableWrapper<U>
Type Parameters:
U - component type
All Implemented Interfaces:
AutoCloseable, ServiceableComponent<U>
Enclosing class:
SupplierBackedReloadableService<T>

private class SupplierBackedReloadableService.ServiceableWrapper<U> extends Object implements ServiceableComponent<U>
Dummy wrapper.
  • Field Details

    • component

      @Nonnull private U component
      Wrapped component.
  • Constructor Details

    • ServiceableWrapper

      public ServiceableWrapper(@Nonnull U comp)
  • Method Details

    • getComponent

      @Nonnull public U getComponent()
      Extract the component that does the actual work. Callers MUST have the ServiceableComponent pinned at this stage.
      Specified by:
      getComponent in interface ServiceableComponent<U>
      Returns:
      the component.
    • close

      public void close()
      Note that this is explicitly declared to not throw an IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface ServiceableComponent<U>