public class DataHolder extends Object
| Constructor and Description |
|---|
DataHolder() |
| Modifier and Type | Method and Description |
|---|---|
org.wso2.carbon.kernel.CarbonRuntime |
getCarbonRuntime()
This method used within this bundle (carbon.core) scope to get the currently held carbonRuntime service instance
within this holder.
|
org.wso2.carbon.config.provider.ConfigProvider |
getConfigProvider()
This method is used to get the config provider service.
|
static DataHolder |
getInstance() |
void |
setCarbonRuntime(org.wso2.carbon.kernel.CarbonRuntime carbonRuntime)
This method is called by the relevant service component that acquires the carbonRuntime service
instance and will be stored for future look-ups.
|
void |
setConfigProvider(org.wso2.carbon.config.provider.ConfigProvider configProvider)
This method is called to set the config provider service.
|
public static DataHolder getInstance()
public org.wso2.carbon.kernel.CarbonRuntime getCarbonRuntime()
public void setCarbonRuntime(org.wso2.carbon.kernel.CarbonRuntime carbonRuntime)
carbonRuntime - the carbonRuntime to be stored with this holderpublic void setConfigProvider(org.wso2.carbon.config.provider.ConfigProvider configProvider)
configProvider - the configProvider to be stored with this holder.public org.wso2.carbon.config.provider.ConfigProvider getConfigProvider()
Copyright © 2019 WSO2. All rights reserved.