lib/application-classes.js
function getDefinition(name) {
  var split      = name.split('::'),
      path       = split[0],
      field      = split[1],
      exported   = (path in require.cache) && require.cache[path].exports,
      definition = !!exported && (field ? exported[field] : exported);
  return !!definition && !!getProto(definition) && definition || null;
}
function getDefinition(name) {
  var split      = name.split('::'),
      path       = split[0],
      field      = split[1],
      exported   = (path in require.cache) && require.cache[path].exports,
      definition = !!exported && (field ? exported[field] : exported);
  return !!definition && !!getProto(definition) && definition || null;
}
function getDefinition ( name ) { var split = name . split ( '::' ) , path = split [ 0 ] , field = split [ 1 ] , exported = ( path in require . cache ) && require . cache [ path ] . exports , definition = ! ! exported && ( field ? exported [ field ] : exported ) ; return ! ! definition && ! ! getProto ( definition ) && definition || null ; }
Get the class definition by explicit path where already in the require cache.
@param {string} name The absolute path to the file containing the class
@returns {null}
Get the class definition by explicit path where already in the require cache .