Package net.shibboleth.sp.service.impl
Class SupplierBackedReloadableService<T>
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.sp.service.impl.SupplierBackedReloadableService<T>
- Type Parameters:
T- component type
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ReloadableService<T>
public class SupplierBackedReloadableService<T>
extends AbstractInitializableComponent
implements ReloadableService<T>
A "null" implementation of
ReloadableService that obtains an instance of an
object via a strategy and exposes it as though it were a component wrapped
by a service by nulling the relevant methods and interfaces.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classDummy wrapper. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe supplier of the component to expose. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
componentSource
The supplier of the component to expose.
-
-
Constructor Details
-
SupplierBackedReloadableService
Constructor.- Parameters:
supplier- source of component called when the component is requested
-
-
Method Details
-
getLastSuccessfulReloadInstant
- Specified by:
getLastSuccessfulReloadInstantin interfaceReloadableService<T>
-
getLastReloadAttemptInstant
- Specified by:
getLastReloadAttemptInstantin interfaceReloadableService<T>
-
getReloadFailureCause
- Specified by:
getReloadFailureCausein interfaceReloadableService<T>
-
reload
public void reload()- Specified by:
reloadin interfaceReloadableService<T>
-
getServiceableComponent
- Specified by:
getServiceableComponentin interfaceReloadableService<T>- Throws:
ServiceException
-