Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.2.1.2.0)

E77779-01

ReflectionUpdater Class Reference

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

Inherited by TypedUpdater, and TypedUpdater< AH::ValueType::BoxedType, C, M, coherence::lang::BoxHandle< AH::ValueType >, OH >.

List of all members.


Detailed Description

Reflection-based ValueUpdater implementation.

Local execution of a ReflectionUpdater is dependent upon target class and method having been registered with the SystemClassLoader. For cases where the registration has not been performed or is not possible locally executable C++ updaters may either be custom built, or auto-generated using the TypedUpdater<>.

Author:
djl/mf 2008.04.08
See also:
CompositeUpdater

TypedUpdater

Method


Public Types

typedef spec::Handle Handle
 ReflectionUpdater Handle definition.
typedef spec::View View
 ReflectionUpdater View definition.
typedef spec::Holder Holder
 ReflectionUpdater Holder definition.

Public Member Functions

virtual void update (Object::Handle hTarget, Object::Holder ohValue) const
 
virtual void readExternal (PofReader::Handle hIn)
 
virtual void writeExternal (PofWriter::Handle hOut) const
 
virtual bool equals (Object::View v) const
 
virtual size32_t hashCode () const
 
virtual TypedHandle
< const String > 
toString () const
 
virtual String::View getMethodName () const
 Determine the name of the method that this extractor is configured to invoke.

Protected Member Functions

 ReflectionUpdater ()
 Construct an empty ReflectionUpdater (necessary for the PortableObject interface).
 ReflectionUpdater (String::View vsMethod)
 Construct a ReflectionUpdater for a given method name.
 ReflectionUpdater (const ReflectionUpdater &that)
 Copy constructor.

Protected Attributes

FinalView< String > f_vsMethod
 The name of the method to invoke.
MemberView< Method > m_vMethod
 The resolved Method.

Constructor & Destructor Documentation

ReflectionUpdater ( String::View  vsMethod  )  [protected]

Construct a ReflectionUpdater for a given method name.

This implementation assumes that the corresponding classes will have one and only one method with a specified name and this method will have exactly one parameter.


Member Function Documentation

virtual String::View getMethodName (  )  const [virtual]

Determine the name of the method that this extractor is configured to invoke.

Returns:
the name of the method to invoke using reflection


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