org.omg.DynamicAny

Interface DynAny

public interface DynAny extends DynAnyOperations, IDLEntity, Object, Serializable

The DynAny interface provides possibility to access the components of the CORBA object, stored inside the {@link Any}. The DynAny and derived classes additionally allows to access the members of the sequence, structure, union and get the data about enumeration, value type and CORBA fixed without knowing the exact type at the run time. The returned members are also wrapped into DynAny objects, allowing them to be the nested structures.

The DynAny's are usually produced by {@link DynAnyFactory}. This factory is obtained from the ORB:
DynAnyFactory f = DynAnyFactoryHelper.narrow (orb.resolve_initial_references("DynAnyFactory"));

DynAny can also be returned by a method, invoked on another DynAny.