All Downloads are FREE. Search and download functionalities are using the official Maven repository.

joynr.system.LoggingProvider.js Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
/*
 * PLEASE NOTE. THIS IS A GENERATED FILE!
 * Generation date: Wed Jan 27 16:29:10 CET 2016
 */
(function(undefined){

	var checkImpl = function() {
		var missingInImplementation = [];
		if (! this.log.checkOperation())  missingInImplementation.push("Operation:log");

		return missingInImplementation;
	};

	/**
	 * @name LoggingProvider
	 * @constructor
	 *
	 * @classdesc
	 * PLEASE NOTE. THIS IS A GENERATED FILE!
	 * 
Generation date: Wed Jan 27 16:29:10 CET 2016 *

"The logging interface is implemented by log4j and * log4javascript appenders. Do not use directly" * * @summary Constructor of LoggingProvider object * * @param {Object} [implementation] the implementation of the provider * @param {Object} [implementation.ATTRIBUTENAME] the definition of attribute implementation * @param {Function} [implementation.ATTRIBUTENAME.set] the getter function with the * signature "function(value){}" that stores the given attribute value * @param {Function} [implementation.ATTRIBUTENAME.get] the getter function with the * signature "function(){}" that returns the current attribute value * @param {Function} [implementation.OPERATIONNAME] the operation function * @param {Object} [implementation.EVENTNAME] the definition of the event implementation * * @returns {LoggingProvider} a LoggingProvider object to communicate with the joynr infrastructure */ var LoggingProvider = null; LoggingProvider = function LoggingProvider( passedImplementation, dependencies ) { if (!(this instanceof LoggingProvider)) { // in case someone calls constructor without new keyword (e.g. var c = Constructor({..})) return new LoggingProvider( passedImplementation, dependencies); } var implementation = passedImplementation || {}; // defining provider members /** * @function LoggingProvider#log * @summary The log operation is GENERATED FROM THE INTERFACE DESCRIPTION *

log a number of events * * @param {Array.} logEvents - * The list of events to be logged */ this.log = new dependencies.ProviderOperation(this, implementation.log, "log", [ { inputParameter: [ { name : "logEvents", type : "joynr.system.JoynrLogEvent[]" } ], error: { type: "no error enumeration given" }, outputParameter: [ ] } ]); Object.defineProperty(this, 'checkImplementation', { enumerable: false, configurable: false, writable: false, value: checkImpl }); this.interfaceName = "system/Logging"; this.id = dependencies.uuid(); return Object.freeze(this); }; // AMD support if (typeof define === 'function' && define.amd) { define("joynr/system/LoggingProvider", [ "joynr/system/JoynrLogEvent" ], function () { return LoggingProvider; } ); } else if (typeof exports !== 'undefined' ) { if ((module !== undefined) && module.exports) { require("../../joynr/system/JoynrLogEvent"); exports = module.exports = LoggingProvider; } else { // support CommonJS module 1.1.1 spec (`exports` cannot be a function) exports.LoggingProvider = LoggingProvider; } } else { window.LoggingProvider = LoggingProvider; } })();




© 2015 - 2025 Weber Informatics LLC | Privacy Policy