Class PersistenceActivator

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

    public class PersistenceActivator
    extends org.apache.geronimo.osgi.locator.Activator
    implements org.osgi.framework.BundleActivator, PersistenceProviderResolver
    Used to discover/resolve JPA providers in an OSGi environment.
    Version:
    $Rev$ $Date$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PERSISTENCE_PROVIDER  
      • Fields inherited from class org.apache.geronimo.osgi.locator.Activator

        bundleContext
    • Field Detail

      • PERSISTENCE_PROVIDER

        public static final java.lang.String PERSISTENCE_PROVIDER
    • Constructor Detail

      • PersistenceActivator

        public PersistenceActivator()
    • Method Detail

      • start

        public void start​(org.osgi.framework.BundleContext arg0)
                   throws java.lang.Exception
        Specified by:
        start in interface org.osgi.framework.BundleActivator
        Overrides:
        start in class org.apache.geronimo.osgi.locator.Activator
        Throws:
        java.lang.Exception
      • stop

        public void stop​(org.osgi.framework.BundleContext arg0)
                  throws java.lang.Exception
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
        Overrides:
        stop in class org.apache.geronimo.osgi.locator.Activator
        Throws:
        java.lang.Exception
      • addProvider

        protected PersistenceProvider addProvider​(org.osgi.framework.ServiceReference ref)
      • removeProvider

        protected void removeProvider​(org.osgi.framework.ServiceReference ref)