Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Safir::Dob::EntityHandlerInjection Class Reference

Interface to be implemented by an entity handler that makes a non-pending registration for a type that can potentially be injected. More...

#include <Safir/Dob/Consumer.h>

Inheritance diagram for Safir::Dob::EntityHandlerInjection:
Collaboration diagram for Safir::Dob::EntityHandlerInjection:

Additional Inherited Members

- Public Member Functions inherited from Safir::Dob::RevokedRegistrationBase
virtual ~RevokedRegistrationBase ()
 Virtual destructor is needed since we have virtual member functions. More...
 
virtual void OnRevokedRegistration (const Safir::Dob::Typesystem::TypeId typeId, const Safir::Dob::Typesystem::HandlerId &handlerId)=0
 Indicates that the handler is no longer registered for the given type. More...
 
- Public Member Functions inherited from Safir::Dob::Internal::ConsumerBase
virtual ~ConsumerBase ()
 
- Public Member Functions inherited from Safir::Dob::EntityInjectionBase
virtual void OnInjectedNewEntity (const Safir::Dob::InjectedEntityProxy injectedEntityProxy)
 Called when a new entity is about to be injected in the system. More...
 
virtual void OnInjectedUpdatedEntity (const Safir::Dob::InjectedEntityProxy injectedEntityProxy)
 Called when an updated entity is about to be injected in the system. More...
 
virtual void OnInjectedDeletedEntity (const Safir::Dob::InjectedEntityProxy injectedEntityProxy)
 Called when an entity delete is about to be injected in the system. More...
 
virtual void OnInitialInjectionsDone (const Safir::Dob::Typesystem::TypeId typeId, const Dob::Typesystem::HandlerId &handlerId)
 Indicates that all initial injection data has been transfered to the handler. More...
 
- Public Member Functions inherited from Safir::Dob::EntityRequestBase
virtual ~EntityRequestBase ()
 Virtual destructor is needed since we have virtual member functions. More...
 
virtual void OnCreateRequest (const Safir::Dob::EntityRequestProxy entityRequestProxy, Safir::Dob::ResponseSenderPtr responseSender)=0
 Called when someone requests an entity to be created. More...
 
virtual void OnUpdateRequest (const Safir::Dob::EntityRequestProxy entityRequestProxy, Safir::Dob::ResponseSenderPtr responseSender)=0
 Called when someone requests an entity to be updated. More...
 
virtual void OnDeleteRequest (const Safir::Dob::EntityRequestProxy entityRequestProxy, Safir::Dob::ResponseSenderPtr responseSender)=0
 Called when someone requests an entity to be deleted. More...
 

Detailed Description

Interface to be implemented by an entity handler that makes a non-pending registration for a type that can potentially be injected.

The following methods NEED to be implemented:

virtual void OnRevokedRegistration(const Safir::Dob::Typesystem::TypeId typeId, const Safir::Dob::Typesystem::HandlerId& handlerId);

virtual void OnCreateRequest(const Safir::Dob::EntityRequestProxy entityRequestProxy, Safir::Dob::ResponseSenderPtr responseSender);

virtual void OnUpdateRequest(const Safir::Dob::EntityRequestProxy entityRequestProxy, Safir::Dob::ResponseSenderPtr responseSender);

virtual void OnDeleteRequest(const Safir::Dob::EntityRequestProxy entityRequestProxy, Safir::Dob::ResponseSenderPtr responseSender);

The following methods MAY be overridden:

virtual void OnInjectedNewEntity(const Safir::Dob::InjectedEntityProxy injectedEntityProxy);

virtual void OnInjectedUpdatedEntity(const Safir::Dob::InjectedEntityProxy injectedEntityProxy);

virtual void OnInjectedDeletedEntity(const Safir::Dob::InjectedEntityProxy injectedEntityProxy);

virtual void OnInitialInjectionsDone(const Safir::Dob::Typesystem::TypeId typeId, const Safir::Dob::Typesystem::HandlerId& handlerId);