org.eclipse.jpt.jpa.db
Class JptJpaDbPlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.jpt.jpa.db.JptJpaDbPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class JptJpaDbPlugin
extends org.eclipse.core.runtime.Plugin

The Dali JPA DB plug-in lifecycle implementation. Globally available connection profile factory.

Provisional API: This class is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Field Summary
static java.lang.String PLUGIN_ID
           
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
JptJpaDbPlugin()
          The constructor
 
Method Summary
 org.eclipse.jdt.core.IClasspathContainer buildDriverClasspathContainerFor(java.lang.String driverName)
          Creates a jar list container for the given DTP driver.
static ConnectionProfileFactory getConnectionProfileFactory()
           
static JptJpaDbPlugin instance()
          Return the singleton JPT DB plug-in.
static void log(org.eclipse.core.runtime.IStatus status)
          Log the specified status.
static void log(java.lang.String msg)
          Log the specified message.
static void log(java.lang.String msg, java.lang.Throwable throwable)
          Log the specified message and exception or error.
static void log(java.lang.Throwable throwable)
          Log the specified exception or error.
 void start(org.osgi.framework.BundleContext context)
          This method is called upon plug-in activation
 void stop(org.osgi.framework.BundleContext context)
          This method is called when the plug-in is stopped
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PLUGIN_ID

public static final java.lang.String PLUGIN_ID
See Also:
Constant Field Values
Constructor Detail

JptJpaDbPlugin

public JptJpaDbPlugin()
The constructor

Method Detail

instance

public static JptJpaDbPlugin instance()
Return the singleton JPT DB plug-in.


getConnectionProfileFactory

public static ConnectionProfileFactory getConnectionProfileFactory()

log

public static void log(java.lang.String msg)
Log the specified message.


log

public static void log(java.lang.Throwable throwable)
Log the specified exception or error.


log

public static void log(java.lang.String msg,
                       java.lang.Throwable throwable)
Log the specified message and exception or error.


log

public static void log(org.eclipse.core.runtime.IStatus status)
Log the specified status.


start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
This method is called upon plug-in activation

Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.core.runtime.Plugin
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
This method is called when the plug-in is stopped

Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.core.runtime.Plugin
Throws:
java.lang.Exception

buildDriverClasspathContainerFor

public org.eclipse.jdt.core.IClasspathContainer buildDriverClasspathContainerFor(java.lang.String driverName)
Creates a jar list container for the given DTP driver.