Package net.shibboleth.shared.service
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Note that this is explicitly declared to not throw anIOExceptionExtract the component that does the actual work.
-
Field Details
-
component
Wrapped component.
-
-
Constructor Details
-
ServiceableWrapper
-
-
Method Details
-
getComponent
Extract the component that does the actual work. Callers MUST have the ServiceableComponent pinned at this stage.- Specified by:
getComponentin interfaceServiceableComponent<U>- Returns:
- the component.
-
close
public void close()Note that this is explicitly declared to not throw anIOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceServiceableComponent<U>
-