public class DefaultApplicationProvider extends Object implements ApplicationProvider
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
APP_PROPERTIES_CLASSPATH |
| 构造器和说明 |
|---|
DefaultApplicationProvider() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAppId() |
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() |
String |
toString() |
public void initialize()
Providerinitialize 在接口中 Providerpublic void initialize(InputStream in)
ApplicationProviderinitialize 在接口中 ApplicationProviderpublic String getAppId()
getAppId 在接口中 ApplicationProviderpublic boolean isAppIdSet()
isAppIdSet 在接口中 ApplicationProviderpublic 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 occurredCopyright © 2019 Ctrip, Inc.. All rights reserved.