public class JsonServiceRegistry
extends org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry
ServiceRegistry that reads services definition from JSON
configuration file at the Spring Application Context initialization time. JSON files are
expected to be found inside a directory location and this registry will recursively look through
the directory structure to find relevant JSON files. Files are expected to have the
extension.| Constructor and Description |
|---|
JsonServiceRegistry(java.nio.file.Path configDirectory,
boolean enableWatcher,
org.springframework.context.ApplicationEventPublisher eventPublisher,
org.apereo.cas.services.replication.RegisteredServiceReplicationStrategy registeredServiceReplicationStrategy,
org.apereo.cas.services.resource.RegisteredServiceResourceNamingStrategy resourceNamingStrategy)
Instantiates a new Json service registry dao.
|
JsonServiceRegistry(org.springframework.core.io.Resource configDirectory,
boolean enableWatcher,
org.springframework.context.ApplicationEventPublisher eventPublisher,
org.apereo.cas.services.replication.RegisteredServiceReplicationStrategy registeredServiceReplicationStrategy,
org.apereo.cas.services.resource.RegisteredServiceResourceNamingStrategy resourceNamingStrategy)
Instantiates a new Json service registry dao.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getExtension() |
delete, destroy, findServiceById, findServiceById, getRegisteredServiceFileName, getRegisteredServiceFromFile, load, load, removeRegisteredService, save, size, toString, updategetName, publishEvent, setEventPublisherpublic JsonServiceRegistry(java.nio.file.Path configDirectory,
boolean enableWatcher,
org.springframework.context.ApplicationEventPublisher eventPublisher,
org.apereo.cas.services.replication.RegisteredServiceReplicationStrategy registeredServiceReplicationStrategy,
org.apereo.cas.services.resource.RegisteredServiceResourceNamingStrategy resourceNamingStrategy)
DefaultRegisteredServiceJsonSerializer by default.configDirectory - the config directory where service registry files can be found.enableWatcher - the enable watchereventPublisher - the event publisherregisteredServiceReplicationStrategy - the registered service replication strategyresourceNamingStrategy - the registered service namimg strategypublic JsonServiceRegistry(org.springframework.core.io.Resource configDirectory,
boolean enableWatcher,
org.springframework.context.ApplicationEventPublisher eventPublisher,
org.apereo.cas.services.replication.RegisteredServiceReplicationStrategy registeredServiceReplicationStrategy,
org.apereo.cas.services.resource.RegisteredServiceResourceNamingStrategy resourceNamingStrategy)
throws java.lang.Exception
DefaultRegisteredServiceJsonSerializer by default.configDirectory - the config directory where service registry files can be found.enableWatcher - the enable watchereventPublisher - the event publisherregisteredServiceReplicationStrategy - the registered service replication strategyresourceNamingStrategy - the registered service naming strategyjava.lang.Exception - the IO exception