@ProviderType
public interface ConfigurationManager
Configuration
entries.Modifier and Type | Method and Description |
---|---|
Configuration |
getConfiguration(java.lang.String path)
Returns a
Configuration object from the given path or
null if the resource is not adaptable. |
Configuration |
getConfiguration(java.lang.String servicename,
java.lang.String[] configPaths)
Returns the first
Configuration object for a specific service
from an array of configuration paths. |
Resource |
getConfigurationResource(Resource resource)
|
java.util.Iterator<Configuration> |
getConfigurations(Resource resource)
|
java.util.Iterator<Configuration> |
getConfigurations(java.lang.String rootPath)
|
Service |
getService(Configuration configuration)
Returns the
Service for a Configuration . |
Service |
getService(java.lang.String name)
Returns the
Service with the given name . |
java.lang.String |
getServiceName(java.lang.String path)
Returns the service name extracted from provided path.
|
java.util.Iterator<Service> |
getServices()
Returns an
Iterator of Service objects loaded from the
children of the configuration base path. |
java.util.Iterator<Service> |
getServices(java.lang.String[] paths,
java.util.Comparator<Service> comparator)
|
java.util.Iterator<Service> getServices()
Iterator
of Service
objects loaded from the
children of the configuration base path.Iterator
of Service
'sjava.util.Iterator<Service> getServices(java.lang.String[] paths, java.util.Comparator<Service> comparator)
paths
- Service configuration pathscomparator
- A service comparator for orderingIterator
of Service
'sService getService(java.lang.String name)
Service
with the given name
.name
- servicenameService
with given nameService getService(Configuration configuration)
Service
for a Configuration
. If the template
of the configuration defines a cq:cloudservice property with the service
name its resolved Service
is returned, null
otherwise.configuration
- Configuration
Service
java.lang.String getServiceName(java.lang.String path)
path
- path of service persistenceService
name from given pathConfiguration getConfiguration(java.lang.String path)
Configuration
object from the given path or
null
if the resource is not adaptable.path
- Path to the configurationConfiguration
or null
Configuration getConfiguration(java.lang.String servicename, java.lang.String[] configPaths)
Configuration
object for a specific service
from an array of configuration paths.servicename
- servicenameconfigPaths
- array of config pathsConfiguration
or null
java.util.Iterator<Configuration> getConfigurations(java.lang.String rootPath)
rootPath
- root path for lookupIterator
of Configuration
'sjava.util.Iterator<Configuration> getConfigurations(Resource resource)
resource
- the Resource
for which the applying cloudservice Configuration
s should be calculatedIterator
of Configuration
'sCopyright © 2010 - 2020 Adobe. All Rights Reserved