Modeling Services > Dynamic Modeling Services > How to Use Dynamic Objects > Extending Dynamic Objects
 
Extending Dynamic Objects
You can extend a dynamic object to:
*provide your own implementation of it;
*provide your own implementation of its dynamic attributes and relations;
*override the default behavior.
The Rogue Wave® Server API provides the class IlsDynObjectFactory to allow you to instantiate your own dynamic objects. Install your own factory before the first instantiation of a dynamic object, and override the function IlsDynObjectFactory::newInstance. Your dynamic object type must inherit from IlsDynObject.
The class IlsDynObject features a set of factory functions to instantiate some elements of its internal structure, such as dynamic attribute or relations. You can override one of these functions to define your own implementation. The classes IlsDynAttribute and IlsDynRelation are abstract classes which provide the required API. Your dynamic attributes and relations must inherit from these classes.

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.