#include <coherence/util/extractor/BoxUpdater.hpp>
Inherits TypedUpdater< AH::ValueType::BoxedType, C, M, coherence::lang::BoxHandle< AH::ValueType >, OH >.
This updater functions on non-const methods which take unmanaged types for which there is a corresponding the is a managed type which can "box" them via a BoxHandle.
For ease of use the COH_BOX_UPDATER macro can be used to easily construct an instance of this class. For example the following constructs an updater for calling the "void Address::setZip(int32_t)" method.
ValueUpdater::View vUpd = COH_BOX_UPDATER(Address, setZip, Integer32::View);
In the case that the supplied class does not extend from Object and instead relies on the Managed<> wrapper, the COH_MANAGED_BOX_UPDATER is to be used.
Public Types | |
typedef spec::Handle | Handle |
BoxUpdater<AH, C, M, OH> Handle definition. | |
typedef spec::View | View |
BoxUpdater<AH, C, M, OH> View definition. | |
typedef spec::Holder | Holder |
BoxUpdater<AH, C, M, OH> Holder definition. | |
Protected Member Functions | |
BoxUpdater () | |
Construct a BoxUpdater. | |
BoxUpdater (String::View vsMethod) | |
Construct a BoxUpdater based on a method name and optional parameters. |
BoxUpdater | ( | String::View | vsMethod | ) | [inline, protected] |
Construct a BoxUpdater based on a method name and optional parameters.
The method name is only used for the purposes of serializing the extractor for execution on remote Java members.
vsMethod | the name of the method to invoke via reflection |