Class MariaDbActivator

java.lang.Object
org.mariadb.jdbc.internal.osgi.MariaDbActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class MariaDbActivator extends Object implements org.osgi.framework.BundleActivator
The MariaDbActivator registers the JDBC Service with the OSGi-Framework.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.osgi.framework.ServiceRegistration<org.osgi.service.jdbc.DataSourceFactory>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    start(org.osgi.framework.BundleContext context)
     
    void
    stop(org.osgi.framework.BundleContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • service

      private org.osgi.framework.ServiceRegistration<org.osgi.service.jdbc.DataSourceFactory> service
  • Constructor Details

    • MariaDbActivator

      public MariaDbActivator()
  • Method Details

    • start

      public void start(org.osgi.framework.BundleContext context) throws Exception
      Specified by:
      start in interface org.osgi.framework.BundleActivator
      Throws:
      Exception
    • stop

      public void stop(org.osgi.framework.BundleContext context) throws Exception
      Specified by:
      stop in interface org.osgi.framework.BundleActivator
      Throws:
      Exception