public class NullProvider extends Object implements ApplicationProvider, NetworkProvider, ServerProvider
| 构造器和说明 |
|---|
NullProvider() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAppId() |
String |
getDataCenter() |
String |
getEnvType() |
String |
getHostAddress() |
String |
getHostName() |
String |
getProperty(String name,
String defaultValue)
Return the property value with the given name, or
defaultValue if the name doesn't exist. |
Class<? extends Provider> |
getType() |
void |
initialize()
Initialize the provider
|
void |
initialize(InputStream in)
Initialize the application provider with the specified input stream
|
boolean |
isAppIdSet() |
boolean |
isDataCenterSet() |
boolean |
isEnvTypeSet() |
String |
toString() |
public String getProperty(String name, String defaultValue)
ProviderdefaultValue if the name doesn't exist.getProperty 在接口中 Providername - the property namedefaultValue - the default value when name is not found or any error occurredpublic void initialize()
Providerinitialize 在接口中 Providerpublic String getAppId()
getAppId 在接口中 ApplicationProviderpublic boolean isAppIdSet()
isAppIdSet 在接口中 ApplicationProviderpublic String getEnvType()
getEnvType 在接口中 ServerProvidernull if not setpublic boolean isEnvTypeSet()
isEnvTypeSet 在接口中 ServerProviderpublic String getDataCenter()
getDataCenter 在接口中 ServerProvidernull if not setpublic boolean isDataCenterSet()
isDataCenterSet 在接口中 ServerProviderpublic void initialize(InputStream in)
ApplicationProviderinitialize 在接口中 ApplicationProviderinitialize 在接口中 ServerProviderpublic String getHostAddress()
getHostAddress 在接口中 NetworkProviderpublic String getHostName()
getHostName 在接口中 NetworkProviderCopyright © 2019 Ctrip, Inc.. All rights reserved.