Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Hydra Core Library Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::NamedObject

Group:  Generic Objects


rwsf::NamedObject rwsf::HandleBase

Local Index

Members

Header File

#include <rwsf/core/NamedObject.h>

Description

In Hydra, any object may be loaded by the Agent where it is available to services as needed, using Hydra's named object functionality.

Hydra uses named objects internally; for instance, transports and message handlers are instances rwsf::NamedObject. In addition, almost any object can be implemented as a named object in order to make it available to a service at runtime.

All named objects for a service are defined and configured in the generated file objects.xml. This file exists for each service and defines a "name" for each named object as well as its initialization parameters, hence the term "named object." Once an object has been defined in objects.xml and instantiated at runtime, it is available by name throughout the service implementation.

The objects.xml file is loaded by the Agent at startup. The Agent creates all objects inside this file, and then stores them together in a context object specific to this service, or an instance of rwsf::NamingContext. This context object acts like a global registry and instantiates each object as an instance of rwsf::NamedObject.

rwsf::NamedObject implements the handle/body idiom in which rwsf::NamedObject is the handle and rwsf::NamedObjectImp is the body. A rwsf::NamedObject instance is a key/value pair containing an rwsf::Attribute as the value.

For more information on the objects.xml file, Section 17.3.3, "Configuring the Named Object," in the HydraExpress Web Service Development Guide.

Public Constructors

NamedObject();
NamedObject(const NamedObject& obj);

Public Destructor

~NamedObject();

Public Member Operators

NamedObject& 
operator=(const NamedObject& obj);

Public Member Functions

rwsf::Config 
getInitParams();
void 
init();
void 
setInitParams(const rwsf::Config& initParams);


Previous fileTop of DocumentContentsIndex pageNext file

©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks and HydraSDO is a trademark of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.