|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectOpenCOM.CFMetaInterface
public abstract class CFMetaInterface
Description of an abstract class defining operations for creating a component framework. An OpenCOM component extends this behaviour to become a component framework. That is if you QI a component and it support ICFMetaInterface then you know it is a component framework rather than a primitive OpenCOM component.
ICFMetaInterface,
ILifeCycle| Nested Class Summary | |
|---|---|
class |
CFMetaInterface.ConnectedComponent
The framework stores connection information for use during rollback of configurations. |
class |
CFMetaInterface.ExposedInterface
Local class definition for Exposed Interfaces that are stored in the MOPs of the framework. |
class |
CFMetaInterface.ExposedReceptacle
|
| Field Summary | |
|---|---|
OCM_SingleReceptacle<IAccept> |
m_PSR_IAccept
Receptacle to plug-in the validation checks for this component framework. |
OCM_SingleReceptacle<IMetaArchitecture> |
m_PSR_IMetaArchitecture
|
OCM_SingleReceptacle<IMetaInterception> |
m_PSR_IMetaInterception
|
OCM_SingleReceptacle<IMetaInterface> |
m_PSR_IMetaInterface
|
MetaInterface |
Meta
Fixed reference to the OpenCOM runtime API. |
| Constructor Summary | |
|---|---|
CFMetaInterface(IUnknown pRuntime)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
access_CF_graph_lock(int index)
Each component framework implemnts a lock to prevent reconfiguration during functional operation. |
boolean |
break_local_bind(long connID)
This method disconnects two components only if they both reside in the framework and are connected. |
boolean |
commit_arch_transaction()
This method must be called by the reconfiguration agent at the end of the reconfiguration transaction. |
boolean |
connect(IUnknown pSinkIntf,
java.lang.String riid,
long provConnID)
|
IUnknown |
create_component(java.lang.String componentType,
java.lang.String componentName)
This method creates the component within the framework. |
boolean |
delete_component(IUnknown pIUnknown)
This method deletas the component from the framework. |
boolean |
disconnect(java.lang.String riid,
long connID)
|
int |
enumIntfs(java.util.Vector<java.lang.Class> ppIntfs)
Returns a Vector of meta-information. |
int |
enumRecps(java.util.Vector<OCM_RecpMetaInfo_t> ppRecpMetaInfo)
Returns a Vector of meta-information. |
boolean |
expose_interface(java.lang.String rintf,
IUnknown pComp)
This method takes the interface from one of the framework's internal components and then makes it one of its own functional interfaces. |
boolean |
expose_receptacle(java.lang.String rintf,
IUnknown pComp,
java.lang.String recpType)
This method takes the receptacle from one of the framework's internal components and then makes it one of its own receptacles. |
int |
get_bound_components(IUnknown comp,
java.util.Vector<CFMetaInterface.ConnectedComponent> ppConnections)
This method produces a list of components that are connected to a particular component within the framework. |
int |
get_exposed_interfaces(java.util.Vector<java.lang.String> ppIntfs)
This method fills the vector passed as a parameter with the list of interfaces exposed by this framework. |
int |
get_exposed_receptacles(java.util.Vector<CFMetaInterface.ExposedReceptacle> ppComps)
This method fills the vector passed as a parameter with the list of receptacles exposed by this framework. |
int |
get_internal_bindings(java.util.Vector<java.lang.Long> pConnIDS)
This method returns all of the internal connections between components that are wholly within the framework. |
int |
get_internal_components(java.util.Vector<IUnknown> ppComps)
This method fills the vector passed as a parameter with the references of all the components that reside locally within this framework. |
java.util.Hashtable |
GetAllValues(java.lang.String Kind,
java.lang.String iid)
This method retrieves all the meta-data stored on the interface or receptacle. |
TypedAttribute |
GetAttributeValue(java.lang.String iid,
java.lang.String Kind,
java.lang.String Name)
Meta-data can be retrieved from each interface/receptacle of a component. |
boolean |
init_arch_transaction()
All reconfigurations must be performed as part of a transaction. |
boolean |
insert_component(IUnknown componentRef)
This method inserts a previously instantiated component from the runtime, into the framework instance. |
long |
local_bind(IUnknown pIUnkSource,
IUnknown pIUnkSink,
java.lang.String InterfaceType)
This method binds together two components only if they both reside in the framework. |
java.lang.Object |
QueryInterface(java.lang.String InterfaceName,
java.lang.Object cfReference)
This method is an extension of QueryInterface to allow exposed interfaces to be found and used. |
boolean |
release_CF_graph_lock(int index)
Releases the lock, previously acquired. |
boolean |
rollback_arch_transaction()
Rolls the configuration back to its previous state - ideally should not be called directly; maybe if faults are being detected is a supposedly valid architecture you may wish to try returning to a stable version. |
boolean |
SetAttributeValue(java.lang.String iid,
java.lang.String Kind,
java.lang.String Name,
java.lang.String Type,
java.lang.Object Value)
Meta-data can be attached to each interface/receptacle of a component. |
boolean |
shutdown()
Allows a component to take action while it is being deleted. |
boolean |
startup(java.lang.Object pIOCM)
Allows a component to take action whenever an instance is created. |
boolean |
unexpose_all_interfaces()
This method removes all exposed interfaces. |
boolean |
unexpose_all_receptacles()
This method removes all exposed receptacles. |
boolean |
unexpose_interface(java.lang.String rintf,
IUnknown pComp)
This method removes the exposed interface from the outer component framework, |
boolean |
unexpose_receptacle(java.lang.String rintf,
IUnknown pComp)
This method removes the exposed receptacle from the outer component framework, |
int |
update_readers_count(int Value)
Update the CF's locks readers count. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface OpenCOM.IUnknown |
|---|
QueryInterface |
| Field Detail |
|---|
public MetaInterface Meta
IOpenCOMpublic OCM_SingleReceptacle<IAccept> m_PSR_IAccept
public OCM_SingleReceptacle<IMetaInterface> m_PSR_IMetaInterface
public OCM_SingleReceptacle<IMetaInterception> m_PSR_IMetaInterception
public OCM_SingleReceptacle<IMetaArchitecture> m_PSR_IMetaArchitecture
| Constructor Detail |
|---|
public CFMetaInterface(IUnknown pRuntime)
| Method Detail |
|---|
public java.lang.Object QueryInterface(java.lang.String InterfaceName,
java.lang.Object cfReference)
InterfaceName - A string describing the interface we are looking forcfReference - A reference to the outer component framework instance
public boolean shutdown()
ILifeCycle
shutdown in interface ILifeCyclepublic boolean startup(java.lang.Object pIOCM)
ILifeCycle
startup in interface ILifeCyclepIOCM - Any startup data to be passed to the component when it is activated.
IOpenCOM
public IUnknown create_component(java.lang.String componentType,
java.lang.String componentName)
create_component in interface ICFMetaInterfacecomponentType - The type of the component to create.componentName - The unique name of the component to create.
IUnknownpublic boolean insert_component(IUnknown componentRef)
insert_component in interface ICFMetaInterfacepCompReference - The reference of the component instance.componentName - The unique name of the component to create.
IUnknownpublic boolean delete_component(IUnknown pIUnknown)
delete_component in interface ICFMetaInterfacepIUnknown - The component instance to delete
IUnknown
public long local_bind(IUnknown pIUnkSource,
IUnknown pIUnkSink,
java.lang.String InterfaceType)
local_bind in interface ICFMetaInterfacepIUnkSource - The source component with the receptacle.pIUnkSink - The sink component with the interface.InterfaceType - The interface type to make the connection on.
IUnknownpublic boolean break_local_bind(long connID)
break_local_bind in interface ICFMetaInterfaceconnID - The unique ID of the connection to break.
public boolean expose_interface(java.lang.String rintf,
IUnknown pComp)
expose_interface in interface ICFMetaInterfacerintf - The interface type that will be exposed.pComp - The internal component hosting the the interface.
IUnknown
public boolean expose_receptacle(java.lang.String rintf,
IUnknown pComp,
java.lang.String recpType)
expose_receptacle in interface ICFMetaInterfacerintf - The interface type that will be exposed.pComp - The internal component hosting the the interface.recpType - The type of the receptacle.
IUnknownpublic boolean unexpose_all_interfaces()
unexpose_all_interfaces in interface ICFMetaInterfacepublic boolean unexpose_all_receptacles()
unexpose_all_receptacles in interface ICFMetaInterface
public boolean unexpose_interface(java.lang.String rintf,
IUnknown pComp)
unexpose_interface in interface ICFMetaInterfacerintf - The interface type that will be removed.pComp - The internal component hosting the the interface.
IUnknown
public boolean unexpose_receptacle(java.lang.String rintf,
IUnknown pComp)
unexpose_receptacle in interface ICFMetaInterfacerintf - The interface type that will be removed.pComp - The internal component hosting the the receptacle.
IUnknown
public int get_bound_components(IUnknown comp,
java.util.Vector<CFMetaInterface.ConnectedComponent> ppConnections)
get_bound_components in interface ICFMetaInterfacecomp - Instance of the component we wish to find what is connected to it.ppConnections - Vector to be filled with the list of components that are connected to this component.
IUnknownpublic int get_exposed_interfaces(java.util.Vector<java.lang.String> ppIntfs)
get_exposed_interfaces in interface ICFMetaInterfaceppIntfs - A vector to be filled with the list of interfaces.
public int get_exposed_receptacles(java.util.Vector<CFMetaInterface.ExposedReceptacle> ppComps)
get_exposed_receptacles in interface ICFMetaInterfaceppComps - A vector to be filled with the list of receptacles.
public int get_internal_bindings(java.util.Vector<java.lang.Long> pConnIDS)
get_internal_bindings in interface ICFMetaInterfacepConnIDS - A vector to be filled with long values describing the unique id of each connection.
public int get_internal_components(java.util.Vector<IUnknown> ppComps)
get_internal_components in interface ICFMetaInterfaceppComps - A vector to be filled with the references of inner components.
public boolean init_arch_transaction()
init_arch_transaction in interface ICFMetaInterfacepublic boolean commit_arch_transaction()
commit_arch_transaction in interface ICFMetaInterfacepublic boolean rollback_arch_transaction()
rollback_arch_transaction in interface ICFMetaInterfacepublic boolean access_CF_graph_lock(int index)
access_CF_graph_lock in interface ICFMetaInterfaceindex - An integer describing acces type: 0 for read, 1 for write.
public boolean release_CF_graph_lock(int index)
release_CF_graph_lock in interface ICFMetaInterfaceindex - An integer describing acces type: 0 for read, 1 for write.
public int update_readers_count(int Value)
update_readers_count in interface ICFMetaInterfaceValue - increment amount.
public int enumIntfs(java.util.Vector<java.lang.Class> ppIntfs)
enumIntfs in interface IMetaInterfaceppRecpMetaInfo - a Vector to be filled with interface meta-information.
public int enumRecps(java.util.Vector<OCM_RecpMetaInfo_t> ppRecpMetaInfo)
enumRecps in interface IMetaInterfaceppRecpMetaInfo - a Vector to be filled with receptacle meta-information.
public boolean SetAttributeValue(java.lang.String iid,
java.lang.String Kind,
java.lang.String Name,
java.lang.String Type,
java.lang.Object Value)
SetAttributeValue in interface IMetaInterfaceiid - the type of the interface or receptacle.Kind - a string saying whether to attach to an interface or a receptacle.Name - A String describing the attribute name.Type - A String describing the attribute type.Value - An object representing the attribute value.
public TypedAttribute GetAttributeValue(java.lang.String iid,
java.lang.String Kind,
java.lang.String Name)
GetAttributeValue in interface IMetaInterfaceiid - the type of the interface or receptacle.Kind - a string saying whether to attach to an interface or a receptacle.Name - A String describing the attribute name.
public java.util.Hashtable GetAllValues(java.lang.String Kind,
java.lang.String iid)
GetAllValues in interface IMetaInterfaceiid - the type of the interface or receptacle.Kind - a string saying whether to attach to an interface or a receptacle.
public boolean connect(IUnknown pSinkIntf,
java.lang.String riid,
long provConnID)
public boolean disconnect(java.lang.String riid,
long connID)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||