Package org.jdbi.v3.sqlobject
Class SqlObjectFactory
java.lang.Object
org.jdbi.v3.sqlobject.SqlObjectFactory
- All Implemented Interfaces:
- ExtensionFactory
Creates implementations for SqlObject interfaces.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.jdbi.v3.core.extension.ExtensionFactoryExtensionFactory.FactoryFlag
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns true if the factory can process the given extension type.voidReceives theExtensionMetadata.Builderwhen theExtensionMetadataobject for this extension is created.Returns a collection ofConfigCustomizerFactoryobjects.Returns a collection ofExtensionHandlerCustomizerobjects.Returns a collection ofExtensionHandlerFactoryobjects.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdbi.v3.core.extension.ExtensionFactoryattach, getFactoryFlags
- 
Field Details- 
EXTENSION_ID- See Also:
 
 
- 
- 
Method Details- 
acceptsDescription copied from interface:ExtensionFactoryReturns true if the factory can process the given extension type.- Parameters:
- extensionType- the extension type
- Returns:
- whether the factory can produce an extension of the given type
 
- 
buildExtensionMetadataDescription copied from interface:ExtensionFactoryReceives theExtensionMetadata.Builderwhen theExtensionMetadataobject for this extension is created. The factory can add additional method handlers or specific instance and method customizers as needed.
 Code here can call methods on the builder to configure the metadata object.- Specified by:
- buildExtensionMetadatain interface- ExtensionFactory
- Parameters:
- builder- The builder object that is used to create the- ExtensionMetadataobject
 
- 
getExtensionHandlerCustomizersDescription copied from interface:ExtensionFactoryReturns a collection ofExtensionHandlerCustomizerobjects. These customizers are used in addition to the customizers that have been registered withExtensions.registerHandlerCustomizer(org.jdbi.v3.core.extension.ExtensionHandlerCustomizer).
 Handler customizers returned here can customize the behavior of the Handlers returned by the handler factories.- Specified by:
- getExtensionHandlerCustomizersin interface- ExtensionFactory
- Parameters:
- config- A Configuration registry object that can be used to look up additional information
- Returns:
- A collection of ExtensionHandlerCustomizerobjects. Can be empty, must not be null
 
- 
getExtensionHandlerFactoriesDescription copied from interface:ExtensionFactoryReturns a collection ofExtensionHandlerFactoryobjects. These factories are used in addition to the factories that have been registered withExtensions.registerHandlerFactory(org.jdbi.v3.core.extension.ExtensionHandlerFactory).
 Handler factories returned here can customize the behavior of the Extension factory itself.- Specified by:
- getExtensionHandlerFactoriesin interface- ExtensionFactory
- Parameters:
- config- A Configuration registry object that can be used to look up additional information
- Returns:
- A collection of ExtensionHandlerFactoryobjects. Can be empty, must not be null
 
- 
getConfigCustomizerFactoriesDescription copied from interface:ExtensionFactoryReturns a collection ofConfigCustomizerFactoryobjects.
 Each factory is called once for every type that is attached by the factory and once for each method in the type. They can returnConfigCustomizerinstances that will affect the specific configuration for each method and extension type.- Specified by:
- getConfigCustomizerFactoriesin interface- ExtensionFactory
- Parameters:
- config- A Configuration registry object that can be used to look up additional information
- Returns:
- A collection of ConfigCustomizerFactoryobjects. Can be empty, must not be null
 
 
-