This factory allows you to instantiate your own dynamic object instead of using the class IlsDynObject
.
More...
#include <ilserver/dynobj.h>
Public Member Functions | |
IlsDynAttributeFactory * | getAttributeFactory () const |
Returns the attribute factory. | |
IlsDynRelationFactory * | getRelationFactory () const |
This member function returns the relation factory. | |
virtual IlsDynAttributes * | newAttributes (IlsDynObject &obj) |
Called by Server when building a new collection of dynamic attributes for the object obj. More... | |
virtual IlsDynObject * | newInstance (const IlsObjectType *objType, const IlsString &id=IlsString::Null) |
Override this member function to instantiate your own dynamic objects. | |
virtual IlsDynRelations * | newRelations (IlsDynObject &obj) |
Called by Server when building a new collection of dynamic relations for the object obj. More... | |
void | setAttributeFactory (IlsDynAttributeFactory &f) |
Installs a new attribute factory. More... | |
void | setRelationFactory (IlsDynRelationFactory &f) |
Installs a new relation factory. More... | |
This factory allows you to instantiate your own dynamic object instead of using the class IlsDynObject
.
Library: dynmvsvr
Your dynamic object class must inherit from IlsDynObject
. By default, Rogue Wave Server instantiates IlsDynObject
objects.
IlsDynModelInterpreter
, IlsDynMvServer
, IlsDynObject
.
|
virtual |
Called by Server when building a new collection of dynamic attributes for the object obj.
The default implementation builds a subclass of IlsDynAttributes
depending on whether the application allows updating the model or not.
|
virtual |
Called by Server when building a new collection of dynamic relations for the object obj.
The default implementation builds a subclass of IlsDynRelations
depending on whether the application allows updating the model or not.
void IlsDynObjectFactory::setAttributeFactory | ( | IlsDynAttributeFactory & | f | ) |
Installs a new attribute factory.
Rogue Wave Server is responsible for deleting it at the end of the application.
void IlsDynObjectFactory::setRelationFactory | ( | IlsDynRelationFactory & | f | ) |
Installs a new relation factory.
Rogue Wave Server is responsible for deleting it at the end of the application.