Oracle Coherence for C++ API
Release 3.6.1.0

E18813-01

BoxUpdater Class Template Reference

#include <coherence/util/extractor/BoxUpdater.hpp>

Inherits TypedUpdater< AH::ValueType::BoxedType, C, M, coherence::lang::BoxHandle< AH::ValueType >, OH >.

List of all members.


Detailed Description

template<class AH, class C, void(C::*)(typename AH::ValueType::BoxedType) M, class OH = typename C::Handle>
class coherence::util::extractor::BoxUpdater< AH, C, M, OH >

Template based auto-boxing ValueUpdater implementation.

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.

Author:
mf 2009.07.29
See also:
TypedUpdater

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.

Constructor & Destructor Documentation

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.

Parameters:
vsMethod  the name of the method to invoke via reflection

The documentation for this class was generated from the following file:
Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.