rwsf::NamedObject rwsf::HandleBase
#include <rwsf/core/NamedObject.h>
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.
NamedObject();
Default constructor.
NamedObject(const NamedObject& obj);
Constructs a named object handle.
~NamedObject();
Destructor.
NamedObject& operator=(const NamedObject& obj);
Assignment operator.
rwsf::Config getInitParams();
Returns the initialization parameters for this named object.
void init();
Binds a new handle to an rwsf::NamedObjectImp body instance. Takes as an argument an instance of rwsf::Config containing the initialization parameters for this named object as defined in the objects.xml file
void setInitParams(const rwsf::Config& initParams);
Defines initialization parameters for this named object.
©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.