class ServiceHandler:
Constructor: ServiceHandler.from_user_instance(user_instance)
Internal representation of an instance of a user's service handler class.
A service handler is a class decorated with
@nexusrpc.handler.service_handler
that defines operation handler methods
using decorators such as @nexusrpc.handler.operation_handler
.
Instances of this class are created automatically from user service implementation
instances on creation of a Handler instance, at Nexus handler start time. While the
user's class defines operation handlers as factory methods to be called at handler
start time, this class contains the OperationHandler
instances
themselves.
You may create instances of this class manually and pass them to the Handler constructor, for example when programmatically creating Nexus service implementations.
Class Method | from |
Create a ServiceHandler from a user service instance. |
Class Variable | operation |
Undocumented |
Class Variable | service |
Undocumented |
Method | _get |
Return an operation handler, given the operation name. |