org.csstudio.platform.libs.epics
Class EpicsPlugin

java.lang.Object
  extended by Plugin
      extended by org.csstudio.platform.libs.epics.EpicsPlugin

public class EpicsPlugin
extends Plugin

The main plugin class to be used in the desktop.

Author:
Original author unknown, Kay Kasemir, Sergei Chevtsov

Nested Class Summary
static class EpicsPlugin.MonitorMask
          How should subscriptions be established?
 
Field Summary
static java.lang.String ID
           
 
Constructor Summary
EpicsPlugin()
          The constructor.
 
Method Summary
static EpicsPlugin getDefault()
           
 EpicsPlugin.MonitorMask getMonitorMask()
           
 void installPreferences()
          Update the CAJ settings with the data from the preference page.
 void start(BundleContext context)
          Set preferences, load JNI libraries as needed
 void stop(BundleContext context)
          
 boolean usePureJava()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

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

EpicsPlugin

public EpicsPlugin()
The constructor.

Method Detail

usePureJava

public boolean usePureJava()
Returns:
true if preferences suggest the use of pure java CA.

getMonitorMask

public EpicsPlugin.MonitorMask getMonitorMask()
Returns:
Mask used to create CA monitors (subscriptions)

getDefault

public static EpicsPlugin getDefault()
Returns:
Returns the shared instance.

start

public final void start(BundleContext context)
                 throws java.lang.Exception
Set preferences, load JNI libraries as needed

Throws:
java.lang.Exception

stop

public final void stop(BundleContext context)
                throws java.lang.Exception

Throws:
java.lang.Exception

installPreferences

public void installPreferences()
Update the CAJ settings with the data from the preference page.

Unfortunately this only takes effect after a restart, the current setup seems to remain unaffected.