function (options) {
    "use strict";
    if ((options.setter && options.setter.indexOf('.') > -1) || (options.getter && options.getter.indexOf('.') > -1)) {
        throw new Error('Getter (' + options.getter + ') and setter (' + options.setter + ') methods cannot be nested, so they cannot contain dot(.)');
    }

    this.options = Joi.attempt(options, optionsSchema);
    this.locales = this.getAvailableLocales();
    this.default = this.options.default || this.locales[0];
    //this.callback   = this.getCallback(this.options.callback);
}
function (options) {
    "use strict";
    if ((options.setter && options.setter.indexOf('.') > -1) || (options.getter && options.getter.indexOf('.') > -1)) {
        throw new Error('Getter (' + options.getter + ') and setter (' + options.setter + ') methods cannot be nested, so they cannot contain dot(.)');
    }

    this.options = Joi.attempt(options, optionsSchema);
    this.locales = this.getAvailableLocales();
    this.default = this.options.default || this.locales[0];
    //this.callback   = this.getCallback(this.options.callback);
}
function ( options ) { "use strict" ; if ( ( options . setter && options . setter . indexOf ( '.' ) > - 1 ) || ( options . getter && options . getter . indexOf ( '.' ) > - 1 ) ) { throw new Error ( 'Getter (' + options . getter + ') and setter (' + options . setter + ') methods cannot be nested, so they cannot contain dot(.)' ) ; } this . options = Joi . attempt ( options , optionsSchema ) ; this . locales = this . getAvailableLocales ( ) ; this . default = this . options . default || this . locales [ 0 ] ; //this.callback   = this.getCallback(this.options.callback); }
Class to implement inner working of plugin.
@param {PluginOptions} options     - Plugin configuration options.
@constructor
@private
Class to implement inner working of plugin .