public final class AdapterRegistry extends Object
VirtualSchemaAdapters need to be registered in the AdapterRegistry in order to receive requests from
the dispatcher.| Constructor | Description |
|---|---|
AdapterRegistry() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Remove all registered adapters from the registry
|
String |
describe() |
Describe the contents of the registry
|
VirtualSchemaAdapter |
getAdapterForName(String name) |
Get the Virtual Schema Adapter registered under the given name
|
static AdapterRegistry |
getInstance() |
Get the singleton instance of the
AdapterRegistry |
List<AdapterFactory> |
getRegisteredAdapterFactories() |
Get a list of all currently registered Virtual Schema Adapters
|
boolean |
hasAdapterWithName(String name) |
Check if an adapter with the given name is registered
|
void |
loadAdapterFactories() |
Load adapter factories via the
ServiceLoader |
void |
registerAdapterFactory(String adapterName,
AdapterFactory factory) |
Register a factory for a
VirtualSchemaAdapter |
public static AdapterRegistry getInstance()
AdapterRegistrypublic void loadAdapterFactories()
ServiceLoaderpublic void registerAdapterFactory(String adapterName, AdapterFactory factory)
VirtualSchemaAdapterfactory - factory that can create the adapteradapterName - name of the adapterpublic List<AdapterFactory> getRegisteredAdapterFactories()
public VirtualSchemaAdapter getAdapterForName(String name)
name - name of the adapterpublic boolean hasAdapterWithName(String name)
name - adapter name to be searched fortrue if an adapter is registered under that namepublic void clear()
public String describe()
Copyright © 2019. All rights reserved.