public class ApiConfigLoader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INTERNAL_API_NAME
The common API name to use for all internal-mechanism endpoint classes loaded through
loadInternalConfiguration. |
| Constructor and Description |
|---|
ApiConfigLoader()
Constructor with basic defaults suitable for unit tests.
|
ApiConfigLoader(ApiConfig.Factory configFactory,
TypeLoader typeLoader,
ApiConfigAnnotationReader annotationSource,
ApiConfigSource... apiConfigSources)
Creates a
ApiConfigLoader. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStaticConfig(ApiConfig config) |
ApiConfig |
loadConfiguration(ServiceContext serviceContext,
java.lang.Class<?> endpointClass) |
ApiConfig |
loadInternalConfiguration(ServiceContext serviceContext,
java.lang.Class<?> endpointClass)
Only used for internal-mechanism Apis.
|
ApiConfig |
reloadConfiguration(ServiceContext serviceContext,
java.lang.Class<?> endpointClass,
ApiConfig oldConfig) |
public static final java.lang.String INTERNAL_API_NAME
loadInternalConfiguration.public ApiConfigLoader(ApiConfig.Factory configFactory, TypeLoader typeLoader, ApiConfigAnnotationReader annotationSource, ApiConfigSource... apiConfigSources)
ApiConfigLoader.configFactory - Factory class in charge of creating ApiConfigs.typeLoader - Utility class for dealing with types in endpoint config generation.annotationSource - Config source which reads annotations in endpoint classes.apiConfigSources - Additional config sources, if any, to operate on endpoints.java.lang.IllegalArgumentException - if apiConfigSources includes another instance
of ApiConfigAnnotationReader.public ApiConfigLoader()
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic ApiConfig loadConfiguration(ServiceContext serviceContext, java.lang.Class<?> endpointClass) throws ApiConfigException
ApiConfigExceptionpublic ApiConfig loadInternalConfiguration(ServiceContext serviceContext, java.lang.Class<?> endpointClass) throws ApiConfigException
ApiConfigExceptionpublic boolean isStaticConfig(ApiConfig config)
public ApiConfig reloadConfiguration(ServiceContext serviceContext, java.lang.Class<?> endpointClass, ApiConfig oldConfig) throws ApiConfigException
ApiConfigException