Class MockReloadableService<T>
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
-
- net.shibboleth.utilities.java.support.service.AbstractReloadableService<T>
-
- net.shibboleth.utilities.java.support.test.service.MockReloadableService<T>
-
- Type Parameters:
T- type of component
- All Implemented Interfaces:
Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,UnmodifiableComponent,ReloadableService<T>
public class MockReloadableService<T> extends AbstractReloadableService<T>
Utility class for wrapping a serviceable component in a dummy reloadable service.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.shibboleth.utilities.java.support.service.AbstractReloadableService
AbstractReloadableService.ServiceReloadTask
-
-
Field Summary
Fields Modifier and Type Field Description private ServiceableComponent<T>component
-
Constructor Summary
Constructors Constructor Description MockReloadableService(ServiceableComponent<T> what)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceableComponent<T>getServiceableComponent()protected booleanshouldReload()-
Methods inherited from class net.shibboleth.utilities.java.support.service.AbstractReloadableService
doDestroy, doInitialize, doReload, getLastReloadAttemptInstant, getLastSuccessfulReloadInstant, getLogPrefix, getReloadCheckDelay, getReloadFailureCause, getReloadTaskTimer, isFailFast, reload, setFailFast, setReloadCheckDelay, setReloadTaskTimer
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
getId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
component
@Nonnull private final ServiceableComponent<T> component
-
-
Constructor Detail
-
MockReloadableService
public MockReloadableService(@Nullable ServiceableComponent<T> what)
-
-
Method Detail
-
getServiceableComponent
@Nullable public ServiceableComponent<T> getServiceableComponent()
-
shouldReload
protected boolean shouldReload()
- Specified by:
shouldReloadin classAbstractReloadableService<T>
-
-