Class ReloadingAccessControlService
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.shared.spring.service.AbstractServiceableComponent<AccessControlService>
net.shibboleth.shared.service.security.impl.ReloadingAccessControlService
- All Implemented Interfaces:
AutoCloseable,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,UnmodifiableComponent,AccessControlService,ServiceableComponent<AccessControlService>,Aware,ApplicationContextAware
public class ReloadingAccessControlService
extends AbstractServiceableComponent<AccessControlService>
implements AccessControlService
This class wraps an
AccessControlService in a
ServiceableComponent.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis method checks to ensure that the component ID is not null.Extract the component that does the actual work.getInstance(String name) Get anAccessControlinstance matching a given name.Methods inherited from class net.shibboleth.shared.spring.service.AbstractServiceableComponent
close, doDestroy, getApplicationContext, pinComponent, setApplicationContext, unloadComponent, unpinComponentMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, 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.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
service
The embedded service.
-
-
Constructor Details
-
Method Details
-
doInitialize
This method checks to ensure that the component ID is not null. Performs the initialization of the component. This method is executed within the lock on the object being initialized. The default implementation of this method is a no-op.- Overrides:
doInitializein classAbstractServiceableComponent<AccessControlService>- Throws:
ComponentInitializationException- thrown if there is a problem initializing the component
-
getInstance
Get anAccessControlinstance matching a given name.In the absence of a matching instance, a default policy that denies access is returned.
- Specified by:
getInstancein interfaceAccessControlService- Parameters:
name- policy name- Returns:
- the matching instance, or a default
-
getComponent
Extract the component that does the actual work. Callers MUST have the ServiceableComponent pinned at this stage.- Specified by:
getComponentin interfaceServiceableComponent<AccessControlService>- Specified by:
getComponentin classAbstractServiceableComponent<AccessControlService>- Returns:
- the component.
-