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

E47891-01

ConfigurableSerializerFactory Class Reference

#include <coherence/io/ConfigurableSerializerFactory.hpp>

Inherits Object, SerializerFactory, and XmlConfigurable.

List of all members.


Detailed Description

A factory for Serializer objects.

Author:
wl 2011.11.07
Since:
Coherence 12.1.2

Public Types

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

Public Member Functions

virtual Serializer::View createSerializer (ClassLoader::View vLoader) const
 Create a new Serializer.

Parameters:
vLoader the optional ClassLoader with which to configure the new Serializer.
Returns:
the new Serializer

virtual void setConfig (XmlElement::View xml)
 
virtual XmlElement::View getConfig () const
 If this Object was previously configured using some XML configuration, the corresponding XmlElement is returned.

Returns:
a view of the XmlElement used to configure this Object

virtual void toStream (std::ostream &out) const
 Output a human-readable description of this Object to the given stream.

coherence::lang::operator<<(std::ostream, Object::View) is defined and will call into the toStream method, to output Objects. If a managed String object is desired, the COH_TO_STRING macro can be used to build up a String from streamable contents.

 Object::View vKey   = ...
 Object::View vValue = ...
 std::cout << vKey << " = " << vValue << std::endl;

 String::Handle hs = COH_TO_STRING(vKey << " = " << vValue);

Parameters:
out the stream used to output the description


Protected Member Functions

 ConfigurableSerializerFactory ()
 Create a new ConfigurableSerializerFactory.

Protected Attributes

FinalView< XmlElementf_vXmlConfig
 XML configuration for this ConfigurableSerializerFactory.

Constructor & Destructor Documentation

ConfigurableSerializerFactory (  )  [protected]

Create a new ConfigurableSerializerFactory.

Parameters:
vXmlConfig the XML configuration for this ConfigurableSerializerFactory.


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