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
-
__create_objectOperationDescriptorInstance
-
-
__supportsOperationDescriptorInstance
-
-
GenericFactoryStub()
-
-
GenericFactoryStub(Representation)
-
-
__classInterfaceName()
-
-
__interfaceName()
-
-
create_object(NameComponent[])
- The create_object operation is passed a key used to identify the desired object
to be created.
-
createRef()
-
-
createRef(Representation)
-
-
duplicate()
-
-
getInterfaceRepositoryIdentifier()
-
-
getRepositoryIdentifier()
-
-
isA(ObjectRef)
-
-
narrow(ObjectRef)
-
-
supports(NameComponent[])
- The supports operation return true if the generic factory can create an object,
given the key.
__supportsOperationDescriptorInstance
public static OperationDescriptor __supportsOperationDescriptorInstance
__create_objectOperationDescriptorInstance
public static OperationDescriptor __create_objectOperationDescriptorInstance
GenericFactoryStub
protected GenericFactoryStub()
GenericFactoryStub
protected GenericFactoryStub(Representation src)
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.
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.
__interfaceName
public InterfaceNameDescriptor __interfaceName()
- Overrides:
- __interfaceName in class RemoteObjectImpl
__classInterfaceName
public static InterfaceNameDescriptor __classInterfaceName()
getInterfaceRepositoryIdentifier
public static String getInterfaceRepositoryIdentifier()
getRepositoryIdentifier
public String getRepositoryIdentifier()
isA
public static boolean isA(ObjectRef that) throws SystemException
- See Also:
- isA
createRef
public static GenericFactoryRef createRef()
createRef
public static GenericFactoryRef createRef(Representation src)
duplicate
public ObjectRef duplicate() throws SystemException
- See Also:
- duplicate
narrow
public static GenericFactoryRef narrow(ObjectRef that) throws NarrowCoercionException, SystemException
All Packages Class Hierarchy This Package Previous Next Index