public interface ApiConfigSource
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStaticConfig(ApiConfig config)
Returns
true iff configuration from this source is static and cannot change between
calls to this source. |
void |
loadEndpointClass(ServiceContext serviceContext,
java.lang.Class<?> endpointClass,
ApiConfig config)
Loads all configuration data for the endpoint class from the configuration source into
config. |
void |
loadEndpointMethods(ServiceContext serviceContext,
java.lang.Class<?> endpointClass,
ApiClassConfig.MethodConfigMap methodConfigMap)
Loads all configuration data for the methods of the endpoint class from the configuration
source into
methodConfigMap. |
void loadEndpointClass(ServiceContext serviceContext, java.lang.Class<?> endpointClass, ApiConfig config) throws ApiConfigException
config. Does not include configuration data for the endpoint methods.serviceContext - Provides context regarding GAE application settings.endpointClass - Class object whose configuration data is being loaded.config - Configuration as loaded so far with defaults and any already-read configurations.
The ApiConfigSource will overwrite any values with those set by its config source.ApiConfigExceptionvoid loadEndpointMethods(ServiceContext serviceContext, java.lang.Class<?> endpointClass, ApiClassConfig.MethodConfigMap methodConfigMap) throws ApiConfigException
methodConfigMap.serviceContext - Provides context regarding GAE application settings.endpointClass - Class object whose configuration data is being loaded.methodConfigMap - A map of endpoint method to its configuration data. This data will
can be read and/or overwritten by this method.ApiConfigExceptionboolean isStaticConfig(ApiConfig config)
true iff configuration from this source is static and cannot change between
calls to this source. This would be true, for example, when the config is loaded from
annotations on the java classes.config - Configuration as loaded so far with defaults and any already-read configurations.