public class DynAnyFactoryPOATie extends DynAnyFactoryPOA
Dynamic interpretation of an any usually involves creating a DynAny object using create_dyn_any() as the first step. Depending on the type of the any, the resulting DynAny object reference can be narrowed to a DynFixed, DynStruct, DynSequence, DynArray, DynUnion, DynEnum, or DynValue object reference.
Dynamic creation of an any involves creating a DynAny object using create_dyn_any_from_type_code(), passing the TypeCode associated with the value to be created. The returned reference is narrowed to one of the complex types, such as DynStruct, if appropriate. Then, the value can be initialized by means of invoking operations on the resulting object. Finally, the to_any operation can be invoked to create an any value from the constructed DynAny.
Constructor and Description |
---|
DynAnyFactoryPOATie(DynAnyFactoryOperations delegate) |
DynAnyFactoryPOATie(DynAnyFactoryOperations delegate,
POA poa) |
Modifier and Type | Method and Description |
---|---|
POA |
_default_POA()
Returns the
root POA from the ORB instance associated with the servant.
|
DynAnyFactoryOperations |
_delegate() |
void |
_delegate(DynAnyFactoryOperations delegate) |
DynAny |
create_dyn_any_from_type_code(TypeCode type)
Creates a DynAny from a TypeCode.
|
DynAny |
create_dyn_any(Any value)
Creates a new DynAny object from an any value.
|
_all_interfaces, _invoke, _this, _this
_get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
public DynAnyFactoryPOATie(DynAnyFactoryOperations delegate)
public DynAnyFactoryPOATie(DynAnyFactoryOperations delegate, POA poa)
public DynAnyFactoryOperations _delegate()
public void _delegate(DynAnyFactoryOperations delegate)
public POA _default_POA()
Servant
_default_POA
in class Servant
default_POA
the POA associated with the
Servant
.public DynAny create_dyn_any(Any value) throws InconsistentTypeCode
InconsistentTypeCode
- if value has a TypeCode with a TCKind of tk_Principal,
tk_native, or tk_abstract_interfacepublic DynAny create_dyn_any_from_type_code(TypeCode type) throws InconsistentTypeCode
InconsistentTypeCode
Copyright © 2019 JBoss by Red Hat. All rights reserved.