Class MariaDbActivator

  • All Implemented Interfaces:
    org.osgi.framework.BundleActivator

    public class MariaDbActivator
    extends java.lang.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> service  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 Detail

      • service

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

      • MariaDbActivator

        public MariaDbActivator()
    • Method Detail

      • start

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

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