@dolittle/sdk.aggregates
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
27 lines • 1.74 kB
JavaScript
;
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
Object.defineProperty(exports, "__esModule", { value: true });
exports.OnDecoratedMethod = void 0;
/**
* Represents methods decorated with the on decorator.
*/
class OnDecoratedMethod {
/**
* Initializes a new instance of {@link OnDecoratedMethod}.
* @param {Constructor<any>} owner - Owner of the method.
* @param {Constructor<any> | EventTypeIdLike} eventTypeOrId - Type or event type id of event it handles.
* @param {Generation | undefined} generation - Generation of the event or undefined.
* @param {OnMethodSignature<any>} method - The actual method that handles the event.
* @param {string} name - The name of the method.
*/
constructor(owner, eventTypeOrId, generation, method, name) {
this.owner = owner;
this.eventTypeOrId = eventTypeOrId;
this.generation = generation;
this.method = method;
this.name = name;
}
}
exports.OnDecoratedMethod = OnDecoratedMethod;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT25EZWNvcmF0ZWRNZXRob2QuanMiLCJzb3VyY2VSb290IjoiLi4vIiwic291cmNlcyI6WyJPbkRlY29yYXRlZE1ldGhvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0NBQStDO0FBQy9DLHFHQUFxRzs7O0FBU3JHOztHQUVHO0FBQ0gsTUFBYSxpQkFBaUI7SUFFMUI7Ozs7Ozs7T0FPRztJQUNILFlBQ2EsS0FBdUIsRUFDdkIsYUFBaUQsRUFDakQsVUFBa0MsRUFDbEMsTUFBOEIsRUFDOUIsSUFBWTtRQUpaLFVBQUssR0FBTCxLQUFLLENBQWtCO1FBQ3ZCLGtCQUFhLEdBQWIsYUFBYSxDQUFvQztRQUNqRCxlQUFVLEdBQVYsVUFBVSxDQUF3QjtRQUNsQyxXQUFNLEdBQU4sTUFBTSxDQUF3QjtRQUM5QixTQUFJLEdBQUosSUFBSSxDQUFRO0lBQ3pCLENBQUM7Q0FDSjtBQWpCRCw4Q0FpQkMifQ==