@robotlegsjs/core
Version:
An architecture-based IoC framework for JavaScript/TypeScript
27 lines (26 loc) • 655 B
TypeScript
import { IMatcher } from "../api/IMatcher";
/**
* Robotlegs object processor
*
* @private
*/
export declare class ObjectProcessor {
private _handlers;
/**
* Add a handler to process objects that match a given matcher.
*
* @param matcher The matcher
* @param handler The handler function
*/
addObjectHandler(matcher: IMatcher, handler: Function): void;
/**
* Process an object by running it through all registered handlers
*
* @param object The object instance to process.
*/
processObject(object: any): void;
/**
* Removes all handlers
*/
removeAllHandlers(): void;
}