|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectOpenCOM.OpenCOM
public class OpenCOM
OpenCOM is the implementation of the component runtime kernel. It should be instantiated once only - n.b. future versions may implement this class using the singleton pattern. OpenCOM provides a set of runtime services that support the creation, deletetion and binding of software components. Notably, it maintains information about the running component architectures in a system wide graph data structure. Reflective operations can then be performed on this meta-representation i.e. inspection and dynamic reconfiguration. The aim is to support the capabilities of the three meta-models proposed by the Open ORB philosopy i.e. interface, architecture and interception meta-models. Not that this is a prototype version of OpenCOM version 1 as described in Clarke,01. There is a C++ implementation offering identical operations.
IOpenCOM,
IMetaInterface,
IMetaInterception,
IMetaArchitecture| Constructor Summary | |
|---|---|
OpenCOM()
Constructor that creates a new instance of the OpenCOM runtime kernel |
|
| Method Summary | |
|---|---|
long |
connect(IUnknown pIUnkSource,
IUnknown pIUnkSink,
java.lang.String iid)
Connects the source component hosting the receptacle to the sink component hosting the interface on the given interface type. |
java.lang.Object |
createInstance(java.lang.String componentType,
java.lang.String componentName)
Creates a component in the OpenCOM runtime. |
boolean |
deleteInstance(IUnknown pCompToDelete)
This method deletes the information about a component from the system graph. |
boolean |
disconnect(long connID)
This operation disconnects two previously connected components based upon the unqiue ID of this connection. |
void |
dump()
The dump method is useful for debugging purposes as it allows the entire state of the system graph to be outputted to the console. |
int |
enumComponents(java.util.Vector<IUnknown> ppComps)
This method enumerates all components currently registetred with the runtime and places their references into the given vector parameter. |
int |
enumConnsFromRecp(IUnknown pIUnknown,
java.lang.String riid,
java.util.Vector<java.lang.Long> ppConnsFromRecp)
This method introspects connections on existing components. |
int |
enumConnsToIntf(IUnknown pIUnknown,
java.lang.String riid,
java.util.Vector<java.lang.Long> ppConnsToIntf)
This method introspects connections on existing components. |
java.lang.Class |
getComponentCLSID(IUnknown pIUnknown)
This method returns the Component type as a java class for a given instance of a component. |
java.lang.String |
getComponentName(IUnknown pIUnknown)
This method returns the unqiue component name for a given instance of a component. |
IUnknown |
getComponentPIUnknown(java.lang.String CompName)
This method returns the component reference for a given unique component name. |
OCM_ConnInfo_t |
getConnectionInfo(long connID)
Returns meta-information about a connection (i.e. |
IDelegator |
GetDelegator(IUnknown pIUnkParent,
java.lang.String riid)
This method get the delegator for a particular component interface. |
java.lang.Object |
QueryInterface(java.lang.String InterfaceName)
This method returns a reference point to the runtime, based upon the requested interface type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenCOM()
| Method Detail |
|---|
public void dump()
dump in interface IDebug
public int enumConnsFromRecp(IUnknown pIUnknown,
java.lang.String riid,
java.util.Vector<java.lang.Long> ppConnsFromRecp)
enumConnsFromRecp in interface IMetaArchitecturepIUnknown - The component hosting the receptacle we wish to introspect.riid - The interface type of the receptacle.ppConnsFromRecp - A vector to be filled with unique connection ids of all the connections to this receptacle.
public int enumConnsToIntf(IUnknown pIUnknown,
java.lang.String riid,
java.util.Vector<java.lang.Long> ppConnsToIntf)
enumConnsToIntf in interface IMetaArchitecturepIUnknown - The component hosting the interface we wish to introspect.riid - The interface type of the interface.ppConnsFromRecp - A vector to be filled with unique connection ids of all the connections to this interface.
public java.lang.Object QueryInterface(java.lang.String InterfaceName)
QueryInterface in interface IUnknownA - string describing the interface requested.
public long connect(IUnknown pIUnkSource,
IUnknown pIUnkSink,
java.lang.String iid)
connect in interface IOpenCOMIUnkSource - The source component of the connection (hosts receptacle).pIUnkSink - The sink component of the connection (provides interface).iid - The interface type to make the connection on.
IUnknown
public java.lang.Object createInstance(java.lang.String componentType,
java.lang.String componentName)
createInstance in interface IOpenCOMcomponentType - This string describes the Java class type of the component to create.componentName - The unique user-defined name for the new component.
Objectpublic boolean deleteInstance(IUnknown pCompToDelete)
deleteInstance in interface IOpenCOMpCompToDelete - Reference to the component instance to be deleted.
IUnknownpublic boolean disconnect(long connID)
disconnect in interface IOpenCOMconnID - A long representing the unqie identifier of the connection to destroy.
public int enumComponents(java.util.Vector<IUnknown> ppComps)
enumComponents in interface IOpenCOMppComps - The list to be filled with components from the graph.
public java.lang.Class getComponentCLSID(IUnknown pIUnknown)
getComponentCLSID in interface IOpenCOMpIUnknown - The reference of the component instance.
IUnknown,
Classpublic java.lang.String getComponentName(IUnknown pIUnknown)
getComponentName in interface IOpenCOMpIUnknown - The reference of the component instance.
IUnknownpublic IUnknown getComponentPIUnknown(java.lang.String CompName)
getComponentPIUnknown in interface IOpenCOMCompName - The name of the component instance.
IUnknownpublic OCM_ConnInfo_t getConnectionInfo(long connID)
getConnectionInfo in interface IOpenCOMconnID - The unique connection identifier of the connection to inspect.
OCM_ConnInfo_t
public IDelegator GetDelegator(IUnknown pIUnkParent,
java.lang.String riid)
GetDelegator in interface IMetaInterceptionpIUnkParent - The component reference we want to get a delegator from.riid - The interface type we want to get the delegator for.
IDelegator
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||