Class UCPBackedDataSourceExtension
java.lang.Object
io.helidon.integrations.datasource.cdi.AbstractDataSourceExtension
io.helidon.integrations.datasource.ucp.cdi.UCPBackedDataSourceExtension
- All Implemented Interfaces:
- Extension
An 
Extension that arranges for named DataSource injection points to be satisfied by the Oracle Universal Connection
 Pool.
 In accordance with the CDI specification, instances of this class are not necessarily safe for concurrent use by multiple threads.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected final voidaddBean(BeanConfigurator<DataSource> beanConfigurator, Named dataSourceName, Properties dataSourceProperties) Called to permit subclasses to add aDataSource-typed bean using the suppliedBeanConfigurator.protected final StringgetDataSourceName(Matcher dataSourcePropertyPatternMatcher) Given aMatcherthat has been produced by theAbstractDataSourceExtension.getDataSourcePropertyPatternMatcher(String)method, returns the relevant data source name.protected final StringgetDataSourcePropertyName(Matcher dataSourcePropertyPatternMatcher) Given aMatcherthat has been produced by theAbstractDataSourceExtension.getDataSourcePropertyPatternMatcher(String)method, returns the relevant data source property name.protected final MatchergetDataSourcePropertyPatternMatcher(String configPropertyName) Returns aMatcherfor a property name.Methods inherited from class io.helidon.integrations.datasource.cdi.AbstractDataSourceExtensiongetConfig, getDataSourceNames, getPropertyNames, initializeMasterProperties, putDataSourceProperties
- 
Constructor Details- 
UCPBackedDataSourceExtensionpublic UCPBackedDataSourceExtension()Creates a newUCPBackedDataSourceExtension.
 
- 
- 
Method Details- 
getDataSourcePropertyPatternMatcherDescription copied from class:AbstractDataSourceExtensionReturns aMatcherfor a property name.Implementations of this method must not return null.Given a Stringlikejavax.sql.DataSource.dataSourceName.dataSourcePropertyName, any implementation of this method should return a non-nullMatcherthat is capable of being supplied to theAbstractDataSourceExtension.getDataSourceName(Matcher)andAbstractDataSourceExtension.getDataSourcePropertyName(Matcher)methods.- Specified by:
- getDataSourcePropertyPatternMatcherin class- AbstractDataSourceExtension
- Parameters:
- configPropertyName- the name of a configuration property that logically contains a data source name and a data source property name; must not be- null
- Returns:
- a non-nullMatcher
- See Also:
 
- 
getDataSourceNameDescription copied from class:AbstractDataSourceExtensionGiven aMatcherthat has been produced by theAbstractDataSourceExtension.getDataSourcePropertyPatternMatcher(String)method, returns the relevant data source name.Implementations of this method may return null.- Specified by:
- getDataSourceNamein class- AbstractDataSourceExtension
- Parameters:
- dataSourcePropertyPatternMatcher- a- Matcherproduced by the- AbstractDataSourceExtension.getDataSourcePropertyPatternMatcher(String)method; must not be- null
- Returns:
- a data source name, or null
- See Also:
 
- 
getDataSourcePropertyNameDescription copied from class:AbstractDataSourceExtensionGiven aMatcherthat has been produced by theAbstractDataSourceExtension.getDataSourcePropertyPatternMatcher(String)method, returns the relevant data source property name.Implementations of this method may return null.- Specified by:
- getDataSourcePropertyNamein class- AbstractDataSourceExtension
- Parameters:
- dataSourcePropertyPatternMatcher- a- Matcherproduced by the- AbstractDataSourceExtension.getDataSourcePropertyPatternMatcher(String)method; must not be- null
- Returns:
- a data source property name, or null
- See Also:
 
- 
addBeanprotected final void addBean(BeanConfigurator<DataSource> beanConfigurator, Named dataSourceName, Properties dataSourceProperties) Description copied from class:AbstractDataSourceExtensionCalled to permit subclasses to add aDataSource-typed bean using the suppliedBeanConfigurator.Implementations of this method will be called from an observer method that is observing the AfterBeanDiscoverycontainer lifecycle event.- Specified by:
- addBeanin class- AbstractDataSourceExtension
- Parameters:
- beanConfigurator- the- BeanConfiguratorto use to actually add a new bean; must not be- null
- dataSourceName- a- Namedinstance qualifying the- DataSource-typed bean to be added; may be- null
- dataSourceProperties- a- Propertiesinstance containing properties relevant to the data source; must not be- null
 
 
-