js/PluginMatcher.js
function (name, pointcutOrPlugin) {
            var method, matchstr;

            matchstr = (pointcutOrPlugin && (pointcutOrPlugin.pointcut || pointcutOrPlugin.pattern)) || pointcutOrPlugin;

            if ((pointcutOrPlugin && pointcutOrPlugin.pointcut) || typeof (pointcutOrPlugin) === 'string') {
                method = this.matchPointcut;
            } else {
                method = this.matchPattern;
            }
            return method(name, matchstr);
        }
function (name, pointcutOrPlugin) {
            var method, matchstr;

            matchstr = (pointcutOrPlugin && (pointcutOrPlugin.pointcut || pointcutOrPlugin.pattern)) || pointcutOrPlugin;

            if ((pointcutOrPlugin && pointcutOrPlugin.pointcut) || typeof (pointcutOrPlugin) === 'string') {
                method = this.matchPointcut;
            } else {
                method = this.matchPattern;
            }
            return method(name, matchstr);
        }
function ( name , pointcutOrPlugin ) { var method , matchstr ; matchstr = ( pointcutOrPlugin && ( pointcutOrPlugin . pointcut || pointcutOrPlugin . pattern ) ) || pointcutOrPlugin ; if ( ( pointcutOrPlugin && pointcutOrPlugin . pointcut ) || typeof ( pointcutOrPlugin ) === 'string' ) { method = this . matchPointcut ; } else { method = this . matchPattern ; } return method ( name , matchstr ) ; }
Returns a boolean indicating whether the passed in plugin or pointcut matches the given name. If a string is passed
as the second arg it is assumed to be a pointcut. If a plugin object is passed, it is checked for either a
pointcut or a pattern attribute. In either case the method delegates to the matchPointcut or matchPattern method.

@param name - service and method name in dot notation, like "CaseService.readCase".
@param pointcutOrPlugin - pointcut string or plugin for matching against name.
Returns a boolean indicating whether the passed in plugin or pointcut matches the given name . If a string is passed as the second arg it is assumed to be a pointcut . If a plugin object is passed it is checked for either a pointcut or a pattern attribute . In either case the method delegates to the matchPointcut or matchPattern method .