Class COM.ibm.dsom.services.CosLifeCycle.GenericFactoryStub
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.ibm.dsom.services.CosLifeCycle.GenericFactoryStub

java.lang.Object
   |
   +----sunw.orb.RemoteObjectImpl
           |
           +----sunw.corba.ObjectImpl
                   |
                   +----COM.ibm.dsom.services.CosLifeCycle.GenericFactoryStub

public class GenericFactoryStub
extends ObjectImpl
implements GenericFactoryRef

Variable Index

 o __create_objectOperationDescriptorInstance
 o __supportsOperationDescriptorInstance

Constructor Index

 o GenericFactoryStub()
 o GenericFactoryStub(Representation)

Method Index

 o __classInterfaceName()
 o __interfaceName()
 o create_object(NameComponent[])
The create_object operation is passed a key used to identify the desired object to be created.
 o createRef()
 o createRef(Representation)
 o duplicate()
 o getInterfaceRepositoryIdentifier()
 o getRepositoryIdentifier()
 o isA(ObjectRef)
 o narrow(ObjectRef)
 o supports(NameComponent[])
The supports operation return true if the generic factory can create an object, given the key.

Variables

 o __supportsOperationDescriptorInstance
  public static OperationDescriptor __supportsOperationDescriptorInstance
 o __create_objectOperationDescriptorInstance
  public static OperationDescriptor __create_objectOperationDescriptorInstance

Constructors

 o GenericFactoryStub
  protected GenericFactoryStub()
 o GenericFactoryStub
  protected GenericFactoryStub(Representation src)

Methods

 o supports
  public static boolean supports(NameComponent key[]) throws SystemException
The supports operation return true if the generic factory can create an object, given the key. Otherwise false is returned. To use this method, you specify the interface name in the id field of the first element of the NameComponent[] array. The kind field is ignored (assumed to always be object interface) Any additional elements in the NameComponent[] array are ignored as well.
Parameters:
key - The NameComponent[] which contains the interface name.
    (Example: key[0].id="testcase::foo" key[0]._kind="")
    Note: The kind field is ignored.
Returns:
A boolean true or false is returned.
 o create_object
  public static ObjectRef create_object(NameComponent k[]) throws SystemException, NoFactory
The create_object operation is passed a key used to identify the desired object to be created. The key is a name, as defined by the naming service.

The scope of the key is the generic factory. The generic factory assigns no semantics to the key. It simply matches the keys. It makes no guarentees about the interface or implementation of the created object.

Note: This implementation of create_object is a simplified version of the CosLifeCycle create_object method. There is no Criteria parameter. To use this method, you specify the interface name in the id field of the first element of the NameComponent[] array. The kind field is ignored (assumed to always be object interface). Any additional elements in the NameComponent[] array are ignored as well.

Parameters:
k - The NameComponent[] which contains the interface name of the object to be created.
    (Example: k[0].id="testcase::foo" k[0].kind="object interface")
Returns:
An ObjectRef is returned. This reference will need to be narrow'ed to the object's actual type.
 o __interfaceName
  public InterfaceNameDescriptor __interfaceName()
Overrides:
__interfaceName in class RemoteObjectImpl
 o __classInterfaceName
  public static InterfaceNameDescriptor __classInterfaceName()
 o getInterfaceRepositoryIdentifier
  public static String getInterfaceRepositoryIdentifier()
 o getRepositoryIdentifier
  public String getRepositoryIdentifier()
 o isA
  public static boolean isA(ObjectRef that) throws SystemException
See Also:
isA
 o createRef
  public static GenericFactoryRef createRef()
 o createRef
  public static GenericFactoryRef createRef(Representation src)
 o duplicate
  public ObjectRef duplicate() throws SystemException
See Also:
duplicate
 o narrow
  public static GenericFactoryRef narrow(ObjectRef that) throws NarrowCoercionException, SystemException

All Packages  Class Hierarchy  This Package  Previous  Next  Index