javax.persistence.osgi
Class Activator
java.lang.Object
javax.persistence.osgi.Activator
- All Implemented Interfaces:
- Persistence.ProviderResolver
public class Activator
- extends java.lang.Object
- implements Persistence.ProviderResolver
Uses OSGi services to discover JPA persistence providers
Also acts as a resolver class (called by the Persistence
class when resolving providers).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PERSISTENCE_PROVIDER
public static final java.lang.String PERSISTENCE_PROVIDER
- See Also:
- Constant Field Values
Activator
public Activator()
start
public void start(BundleContext context)
throws java.lang.Exception
- Throws:
java.lang.Exception
stop
public void stop(BundleContext context)
throws java.lang.Exception
- Throws:
java.lang.Exception
findAllProviders
public java.util.Collection<PersistenceProvider> findAllProviders()
throws java.io.IOException
- Specified by:
findAllProviders
in interface Persistence.ProviderResolver
- Throws:
java.io.IOException
Submit a bug or feature Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.