Class PersistenceActivator
- java.lang.Object
-
- org.apache.openjpa.persistence.osgi.PersistenceActivator
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class PersistenceActivator extends java.lang.Object implements org.osgi.framework.BundleActivator
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
OSGI_PERSISTENCE_PROVIDER
static java.lang.String
PERSISTENCE_PROVIDER
static java.lang.String
PERSISTENCE_PROVIDER_ARIES
-
Constructor Summary
Constructors Constructor Description PersistenceActivator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.ClassLoader
getBundleClassLoader()
void
start(org.osgi.framework.BundleContext ctx)
void
stop(org.osgi.framework.BundleContext ctx)
-
-
-
Field Detail
-
PERSISTENCE_PROVIDER_ARIES
public static final java.lang.String PERSISTENCE_PROVIDER_ARIES
- See Also:
- Constant Field Values
-
PERSISTENCE_PROVIDER
public static final java.lang.String PERSISTENCE_PROVIDER
-
OSGI_PERSISTENCE_PROVIDER
public static final java.lang.String OSGI_PERSISTENCE_PROVIDER
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext ctx) throws java.lang.Exception
- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Throws:
java.lang.Exception
-
stop
public void stop(org.osgi.framework.BundleContext ctx) throws java.lang.Exception
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Throws:
java.lang.Exception
-
getBundleClassLoader
public static java.lang.ClassLoader getBundleClassLoader()
-
-