public class DefaultApplicationProvider extends Object implements ApplicationProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
APP_PROPERTIES_CLASSPATH |
| Constructor and Description |
|---|
DefaultApplicationProvider() |
| Modifier and Type | Method and Description |
|---|---|
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 static final String APP_PROPERTIES_CLASSPATH
public void initialize()
Providerinitialize in interface Providerpublic void initialize(InputStream in)
ApplicationProviderinitialize in interface ApplicationProviderpublic String getAppId()
getAppId in interface ApplicationProviderpublic boolean isAppIdSet()
isAppIdSet in interface ApplicationProviderpublic String getProperty(String name, String defaultValue)
ProviderdefaultValue if the name doesn't exist.getProperty in interface Providername - the property namedefaultValue - the default value when name is not found or any error occurredCopyright © 2018 Ctrip, Inc.. All rights reserved.