public class RegistryPersistenceManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EMPTY_STRING |
Constructor and Description |
---|
RegistryPersistenceManager() |
Modifier and Type | Method and Description |
---|---|
InternalEventingConfigData |
fillEventingConfigData(ServiceEventingConfigData eventingConfigData) |
Properties |
getAllConfigProperties(String registryPath)
Fetches all properties for any registry resource
|
String |
getConfigurationProperty(String registryPath,
String propertyName)
Fetches the value of the property with propertyName from registry.
|
ServiceEventingConfigData |
getEventingConfigData() |
ServiceEventingConfigData |
load()
Loads configuration from Registry.
|
static void |
setRegistryService(org.wso2.carbon.registry.core.service.RegistryService registryServiceParam) |
void |
update(ServiceEventingConfigData eventingConfigData)
Updates the Registry with given config data.
|
void |
updateAllProperties(Properties properties,
String registryPath)
Updates all properties of a resource
|
void |
updateConfigurationProperty(String propertyName,
Object value,
String registryPath)
Updates configuration property to a new value.
|
public static final String EMPTY_STRING
public static void setRegistryService(org.wso2.carbon.registry.core.service.RegistryService registryServiceParam)
public void updateConfigurationProperty(String propertyName, Object value, String registryPath) throws org.wso2.carbon.registry.core.exceptions.RegistryException
propertyName
- Name of the property to be updated.value
- New value of the propertyorg.wso2.carbon.registry.core.exceptions.RegistryException
public ServiceEventingConfigData load()
public InternalEventingConfigData fillEventingConfigData(ServiceEventingConfigData eventingConfigData)
public void updateAllProperties(Properties properties, String registryPath) throws org.wso2.carbon.registry.core.exceptions.RegistryException
properties
- registryPath
- org.wso2.carbon.registry.core.exceptions.RegistryException
public void update(ServiceEventingConfigData eventingConfigData) throws org.wso2.carbon.registry.core.exceptions.RegistryException
eventingConfigData
- eventing configuration dataorg.wso2.carbon.registry.core.exceptions.RegistryException
- thrown when updating the registry properties fails.public String getConfigurationProperty(String registryPath, String propertyName) throws org.wso2.carbon.registry.core.exceptions.RegistryException
registryPath
- reg pathpropertyName
- Name of the property to be fetched.org.wso2.carbon.registry.core.exceptions.RegistryException
public Properties getAllConfigProperties(String registryPath) throws org.wso2.carbon.registry.core.exceptions.RegistryException
registryPath
- org.wso2.carbon.registry.core.exceptions.RegistryException
public ServiceEventingConfigData getEventingConfigData()
Copyright © 2017 WSO2. All rights reserved.