Class ConfluenceConnectionProvider
- java.lang.Object
-
- com.atlassian.confluence.api.impl.sal.rdbms.ConfluenceConnectionProvider
-
- All Implemented Interfaces:
com.atlassian.sal.spring.connection.SpringHostConnectionAccessor.ConnectionProvider
public class ConfluenceConnectionProvider extends Object implements com.atlassian.sal.spring.connection.SpringHostConnectionAccessor.ConnectionProvider
Connection provider implementation forSpringHostConnectionAccessor
, which is a generic spring implementation of SAL'sHostConnectionAccessor
. IMPORTANT Do not change the spring bean name (salConnectionProvider) of this class. Do not remove the interface implementation. This bean is accessed by a few plugins with the type/interface com.atlassian.sal.spring.connection.SpringHostConnectionAccessor.ConnectionProvider Those plugins look up this bean using the bean name "salConnectionProvider" Removing the interface implementation/changing the bean name would break those plugins.- Since:
- 5.9
-
-
Constructor Summary
Constructors Constructor Description ConfluenceConnectionProvider(org.hibernate.SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull Connection
getConnection()
@NonNull io.atlassian.fugue.Option<String>
getSchemaName()
-
-
-
Method Detail
-
getConnection
public @NonNull Connection getConnection()
- Specified by:
getConnection
in interfacecom.atlassian.sal.spring.connection.SpringHostConnectionAccessor.ConnectionProvider
-
getSchemaName
public @NonNull io.atlassian.fugue.Option<String> getSchemaName()
- Specified by:
getSchemaName
in interfacecom.atlassian.sal.spring.connection.SpringHostConnectionAccessor.ConnectionProvider
-
-