Interface ObjectIdDiscovererFactory<T>
-
- All Known Subinterfaces:
TableDiscovererFactory
- All Known Implementing Classes:
FlussDefaultDiscovererFactory,JdbcTableDiscovererFactory
@PublicEvolving public interface ObjectIdDiscovererFactory<T>
SPI factory that creates anObjectIdDiscoverer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classObjectIdDiscovererFactory.DefaultObjectIdDiscovererContextDefault implementation ofObjectIdDiscoverer.Context.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ObjectIdDiscoverer.ContextcreateContext(Configuration configuration, ClassLoader classLoader)Creates a discoverer context with the given configuration and class loader.ObjectIdDiscoverer<T>createDiscoverer()Creates a new uninitializedObjectIdDiscoverer.static <T> ObjectIdDiscoverer<T>createDiscoverer(String type, Class<T> objectIdClass, ClassLoader classLoader)Discovers a factory via SPI and delegates discoverer creation to it.static <T> ObjectIdDiscovererFactory<T>discoverFactory(String type, Class<T> objectIdClass, ClassLoader classLoader)Discovers anObjectIdDiscovererFactoryvia SPI whosetype()andobjectIdClass()match the given arguments.static <T> ObjectIdDiscovererFactory<T>discoverFactory(String type, Class<T> objectIdClass, Iterable<? extends ObjectIdDiscovererFactory<?>> factories)Discovers anObjectIdDiscovererFactoryfrom the given candidates whosetype()andobjectIdClass()match the given arguments.Class<T>objectIdClass()Discovered object id type, used to distinguish TableId/ObjectId/etc.Stringtype()Storage-side type, such as jdbc, local-file, or remote-store.
-
-
-
Method Detail
-
type
String type()
Storage-side type, such as jdbc, local-file, or remote-store.
-
objectIdClass
Class<T> objectIdClass()
Discovered object id type, used to distinguish TableId/ObjectId/etc.
-
createDiscoverer
ObjectIdDiscoverer<T> createDiscoverer()
Creates a new uninitializedObjectIdDiscoverer.
-
createContext
static ObjectIdDiscoverer.Context createContext(Configuration configuration, ClassLoader classLoader)
Creates a discoverer context with the given configuration and class loader.
-
createDiscoverer
static <T> ObjectIdDiscoverer<T> createDiscoverer(String type, Class<T> objectIdClass, ClassLoader classLoader)
Discovers a factory via SPI and delegates discoverer creation to it.
-
discoverFactory
static <T> ObjectIdDiscovererFactory<T> discoverFactory(String type, Class<T> objectIdClass, ClassLoader classLoader)
Discovers anObjectIdDiscovererFactoryvia SPI whosetype()andobjectIdClass()match the given arguments.- Throws:
IllegalArgumentException- if no factory matches the given combination.IllegalStateException- if multiple factories match the given combination.
-
discoverFactory
static <T> ObjectIdDiscovererFactory<T> discoverFactory(String type, Class<T> objectIdClass, Iterable<? extends ObjectIdDiscovererFactory<?>> factories)
Discovers anObjectIdDiscovererFactoryfrom the given candidates whosetype()andobjectIdClass()match the given arguments.- Throws:
IllegalArgumentException- if no factory matches the given combination.IllegalStateException- if multiple factories match the given combination.
-
-