Class OSGiActivator

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

    public class OSGiActivator
    extends Object
    implements org.osgi.framework.BundleActivator
    Activator used to register/deregister JPA services in an OSGi environment.
    • Field Detail

      • PERSISTENCE_PROVIDER

        public static final String PERSISTENCE_PROVIDER
      • OSGI_PERSISTENCE_PROVIDER

        public static final String OSGI_PERSISTENCE_PROVIDER
    • Constructor Detail

      • OSGiActivator

        public OSGiActivator()
    • Method Detail

      • start

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

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