public class DelegatingAccessControlService extends AbstractIdentifiableInitializableComponent implements AccessControlService
ReloadableService
concept to implement AccessControlService
to hide the details of pinning and unpinning the underlying service.Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Class logger.
|
private ReloadableService<AccessControlService> |
service
The service which manages the reloading.
|
Constructor and Description |
---|
DelegatingAccessControlService(ReloadableService<AccessControlService> acService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AccessControl |
getInstance(String name)
Get an
AccessControl instance matching a given name. |
setId
doInitialize, getId
destroy, doDestroy, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, isInitialized
getId
@Nonnull private final org.slf4j.Logger log
private final ReloadableService<AccessControlService> service
public DelegatingAccessControlService(@Nonnull ReloadableService<AccessControlService> acService)
acService
- the service which will manage the loading.public AccessControl getInstance(@Nonnull String name)
AccessControl
instance matching a given name.
In the absence of a matching instance, a default policy that denies access is returned.
getInstance
in interface AccessControlService
name
- policy nameCopyright © 1999–2017. All rights reserved.