TANGO Java API
( TangORB-7.3.3.jar)

fr.esrf.TangoApi
Class DeviceProxyFactory

java.lang.Object
  extended by fr.esrf.TangoApi.DeviceProxyFactory

public class DeviceProxyFactory
extends java.lang.Object

Class Description: This class manage a static vector of DeviceProxy object to have a single connection on each device.


Usage example:

Version:
$Revision: 1.2 $
Author:
verdier

Method Summary
static boolean exists(java.lang.String devname)
          DeviceProxy single connection management.
static DeviceProxyFactory get_instance()
          Returns an instance of this singleton
static DeviceProxy get(java.lang.String devname)
          DeviceProxy single connection management.
static void remove(DeviceProxy dev)
          Remove the specified DeviceProxy in table.
static void remove(java.lang.String devname)
          Remove the specified DeviceProxy in table.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get_instance

public static DeviceProxyFactory get_instance()
Returns an instance of this singleton


get

public static DeviceProxy get(java.lang.String devname)
                       throws DevFailed
DeviceProxy single connection management. If it does not already exist, create it. Elese get it from table and return it.

Parameters:
devname - Device name to be created or get.
Throws:
DevFailed

exists

public static boolean exists(java.lang.String devname)
                      throws DevFailed
DeviceProxy single connection management. returns true it does already exist

Parameters:
devname - Device name to check if exists.
Throws:
DevFailed

remove

public static void remove(java.lang.String devname)
Remove the specified DeviceProxy in table.

Parameters:
devname - Device name to be removed.

remove

public static void remove(DeviceProxy dev)
Remove the specified DeviceProxy in table.

Parameters:
dev - Device to be removed.

TANGO Java API
( TangORB-7.3.3.jar)