@Singleton public class CacheServiceFactory extends Object
CacheService
for each active public instance.Constructor and Description |
---|
CacheServiceFactory(javax.inject.Provider<info.magnolia.cms.exchange.ActivationManager> provider,
info.magnolia.rest.client.factory.RestClientFactory restClientFactory) |
Modifier and Type | Method and Description |
---|---|
Map<String,CacheService> |
createCacheServices(String[] credentials)
Creates cache services for each active public instance registered in the system.
|
@Inject public CacheServiceFactory(javax.inject.Provider<info.magnolia.cms.exchange.ActivationManager> provider, info.magnolia.rest.client.factory.RestClientFactory restClientFactory)
public Map<String,CacheService> createCacheServices(String[] credentials)
CacheEndpoint
is exposed
to the public (THIS IS NOT RECOMMENDED FOR SECURITY REASONS!).credentials
- credentials used by the rest client in order to be able to access cache rest endpointCopyright © 2021 Magnolia International Ltd.. All rights reserved.