com.ibm.cics.core.comm
Class ConnectionRegistry

java.lang.Object
  extended by com.ibm.cics.core.comm.ConnectionRegistry

public class ConnectionRegistry
extends java.lang.Object

Registry for all connections defined to this plugin by the com.ibm.cics.core.comm.connections extension point. Provides access to the descriptor classes IConnectionCategory and IConnectionDescriptor.


Method Summary
 IConnectionDescriptor find(java.lang.String id)
          Finds the IConnectionDescriptor registered with the supplied ID.
 IConnectionCategory findCategory(java.lang.Class<? extends IConnection> connectionType)
          Finds the IConnectionCategory a given connectionType belongs to.
 IConnectionCategory findCategory(java.lang.String id)
          Deprecated. use getConnectionCategory(String)
 IConnectionCategory[] getConnectionCategories()
          Get all IConnectionCategorys
 IConnectionCategory getConnectionCategory(java.lang.String aCategoryID)
          Finds an IConnectionCategory with the supplied ID.
static ConnectionRegistry getConnectionRegistry()
          Get the singleton instance of this ConnectionRegistry
 IConnectionDescriptor[] getConnections()
          Get all IConnectionDescriptors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findCategory

public IConnectionCategory findCategory(java.lang.Class<? extends IConnection> connectionType)
Finds the IConnectionCategory a given connectionType belongs to.

Parameters:
connectionType - a subclass of the class registered as the connection type for a particular category.
Returns:
the IConnectionCategory associated with classes of connectionType or null if no such category exists.

find

public IConnectionDescriptor find(java.lang.String id)
Finds the IConnectionDescriptor registered with the supplied ID.

Parameters:
id - id to search for
Returns:
an IConnectionDescriptor or null if none can be found.

getConnections

public IConnectionDescriptor[] getConnections()
Get all IConnectionDescriptors

Returns:
an array of all known IConnectionDescriptors, which may be empty.

getConnectionCategories

public IConnectionCategory[] getConnectionCategories()
Get all IConnectionCategorys

Returns:
an array of all known IConnectionCategorys, which may be empty.

findCategory

@Deprecated
public IConnectionCategory findCategory(java.lang.String id)
Deprecated. use getConnectionCategory(String)

Finds an IConnectionCategory with the supplied ID.

Parameters:
id - the ID of the IConnectionCategory to return
Returns:
an IConnectionCategory or null if none can be found.

getConnectionRegistry

public static ConnectionRegistry getConnectionRegistry()
Get the singleton instance of this ConnectionRegistry

Returns:
a ConnectionRegistry

getConnectionCategory

public IConnectionCategory getConnectionCategory(java.lang.String aCategoryID)
Finds an IConnectionCategory with the supplied ID.

Parameters:
id - the ID of the IConnectionCategory to return
Returns:
an IConnectionCategory or null if none can be found.


Copyright © 2013 IBM Corp. All Rights Reserved.