## Uses of Interface
org.omg.CORBA.DynAny

- Packages that use DynAny
  Package | Description
  --- | ---
  org.omg.CORBA | Provides the mapping of the OMG CORBA APIs to the JavaTM programming language, including the class `ORB`, which is implemented so that a programmer can use it as a fully-functional Object Request Broker (ORB).

- - ### Uses of DynAny in org.omg.CORBA

    Subinterfaces of DynAny in org.omg.CORBA
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `DynArray` Deprecated. Use the new DynArray instead
    `interface` | `DynEnum` Deprecated. Use the new DynEnum instead
    `interface` | `DynFixed` Deprecated. Use the new DynFixed instead
    `interface` | `DynSequence` Deprecated. Use the new DynSequence instead
    `interface` | `DynStruct` Deprecated. Use the new DynStruct instead
    `interface` | `DynUnion` Deprecated. Use the new DynUnion instead
    `interface` | `DynValue` Deprecated. Use the new DynValue instead

    Methods in org.omg.CORBA that return DynAny
    Modifier and Type | Method | Description
    --- | --- | ---
    `DynAny` | DynAny.`copy()` Deprecated. Clones this `DynAny` object.
    `DynAny` | ORB.`create_basic_dyn_any(TypeCode type)` Deprecated. Use the new DynAnyFactory API instead
    `DynAny` | ORB.`create_dyn_any(Any value)` Deprecated. Use the new DynAnyFactory API instead
    `DynAny` | DynAny.`current_component()` Deprecated. Returns a `DynAny` object reference that can be used to get/set the value of the component currently accessed.
    `DynAny` | DynUnion.`discriminator()` Deprecated. Returns a DynAny object reference that must be narrowed to the type of the discriminator in order to insert/get the discriminator value.
    `DynAny` | DynUnion.`member()` Deprecated. Returns a DynAny object reference that is used in order to insert/get a member of this union.

    Methods in org.omg.CORBA with parameters of type DynAny
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | DynAny.`assign(DynAny dyn_any)` Deprecated. Copy the contents from one Dynamic Any into another.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.