Class 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 for SpringHostConnectionAccessor, which is a generic spring implementation of SAL's HostConnectionAccessor. 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 Detail

      • ConfluenceConnectionProvider

        public ConfluenceConnectionProvider​(org.hibernate.SessionFactory sessionFactory)
    • Method Detail

      • getConnection

        public @NonNull Connection getConnection()
        Specified by:
        getConnection in interface com.atlassian.sal.spring.connection.SpringHostConnectionAccessor.ConnectionProvider
      • getSchemaName

        public @NonNull io.atlassian.fugue.Option<String> getSchemaName()
        Specified by:
        getSchemaName in interface com.atlassian.sal.spring.connection.SpringHostConnectionAccessor.ConnectionProvider