public static interface DatabaseClientFactory.HandleFactoryRegistry
Modifier and Type | Method | Description |
---|---|---|
DatabaseClientFactory.HandleFactoryRegistry |
copy() |
Create a copy of the current registry
|
boolean |
isRegistered(java.lang.Class<?> ioClass) |
Returns whether the registry associates the
class with a factory.
|
java.util.Set<java.lang.Class<?>> |
listRegistered() |
Returns the classes for the IO representations
for which a factory has been registered.
|
<C> ContentHandle<C> |
makeHandle(java.lang.Class<C> type) |
Creates a ContentHandle if the registry has a
factory for the class of the IO representation.
|
void |
register(ContentHandleFactory factory) |
Associates a factory for content handles with
the classes for IO representations known to the factory.
|
void |
register(ContentHandleFactory factory,
java.lang.Class<?>... ioClasses) |
Associates a factory for content handles with
the specified classes for IO representations.
|
void |
unregister(java.lang.Class<?>... ioClasses) |
Removes the classes from the registry
|
void register(ContentHandleFactory factory)
factory
- a factory for creating content handle
instancesvoid register(ContentHandleFactory factory, java.lang.Class<?>... ioClasses)
factory
- a factory for creating content handle
instancesioClasses
- the IO classes for which the factory
should create handlesboolean isRegistered(java.lang.Class<?> ioClass)
ioClass
- the class for an IO representationjava.util.Set<java.lang.Class<?>> listRegistered()
<C> ContentHandle<C> makeHandle(java.lang.Class<C> type)
C
- the registered type for the returned
handletype
- the class for an IO representationvoid unregister(java.lang.Class<?>... ioClasses)
ioClasses
- one or more registered classes for an
IO representationDatabaseClientFactory.HandleFactoryRegistry copy()
Copyright © 2022 MarkLogic Corporation