Class DataSourceSelectorFactory
- java.lang.Object
-
- com.alibaba.druid.pool.ha.selector.DataSourceSelectorFactory
-
public class DataSourceSelectorFactory extends Object
A Factory pattern for DataSourceSelector.- Author:
- DigitalSonic
-
-
Constructor Summary
Constructors Constructor Description DataSourceSelectorFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataSourceSelectorgetSelector(String name, HighAvailableDataSource highAvailableDataSource)Get a new instance of the given selector name.
-
-
-
Method Detail
-
getSelector
public static DataSourceSelector getSelector(String name, HighAvailableDataSource highAvailableDataSource)
Get a new instance of the given selector name.- Returns:
- null if the given name do not represent a DataSourceSelector
-
-