Qt IOC Container 3.5


qic::PropertyRefInjector Class Reference

#include <PropertyRefInjector.h>

Inheritance diagram for qic::PropertyRefInjector:

Inheritance graph
[legend]
Collaboration diagram for qic::PropertyRefInjector:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~PropertyRefInjector ()
virtual QVariant injectReference (QVariant &prop, ReferenceResolver *resolver, QHash< QString, QObject * > &injector_map)

Detailed Description

PropertyRefInjector converts the ReferenceDefinition to actual object reference as a QVariant object.

Author:
Zhihong "John" Wang

Definition at line 19 of file PropertyRefInjector.h.


Constructor & Destructor Documentation

virtual qic::PropertyRefInjector::~PropertyRefInjector  )  [inline, virtual]
 

Definition at line 25 of file PropertyRefInjector.h.


Member Function Documentation

QVariant PropertyRefInjector::injectReference QVariant &  prop,
ReferenceResolver resolver,
QHash< QString, QObject * > &  injector_map
[virtual]
 

Replace the ReferenceDefinition structs in property value with the actual object reference.

injector_map is provided for recursive injection of object references.

Parameters:
prop property value as QVariant.
injector_map all the injectors registered in the system.
Returns:
QVariant after reference injection.

Implements qic::ReferenceInjector.

Definition at line 13 of file PropertyRefInjector.cpp.

References qic::ReferenceResolver::resolveReferenceObject().


The documentation for this class was generated from the following files: