public final class AdapterRegistry extends Object
VirtualSchemaAdapters need to be registered in the AdapterRegistry in order to receive requests from
the dispatcher.| Constructor and Description |
|---|
AdapterRegistry() |
| Modifier and Type | Method and 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<VirtualSchemaAdapter> |
getRegisteredAdapters()
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 |
registerAdapter(String name,
VirtualSchemaAdapter adapter)
Register a new adapter
|
public static AdapterRegistry getInstance()
AdapterRegistrypublic List<VirtualSchemaAdapter> getRegisteredAdapters()
public void registerAdapter(String name, VirtualSchemaAdapter adapter)
name - name under which the adapter is registeredadapter - adapter instancepublic 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.