APIs

Show:
Extends EmberResolver
Defined in: addon/resolver.js:11
Module: ember-flexberry

Base ember-flexberry application dependencies resolver.

Usage:

import Application from '@ember/application';
import Resolver from 'ember-flexberry/resolver';

let App = Application.extend({
  Resolver: Resolver
});

export default App;

Methods

_resolveResourceWithoutDeviceTypeDetection

(
  • fullName
)
Boolean private

Determines if resource should be resolved with origin resolving path. Returns true if full name of resource was specified in 'resolveWithoutDeviceTypeDetection' application setting.

Parameters:

  • fullName String

    Resource full name (with path inside type-related directory).

Returns:

Boolean:

Flag: indicates whether given resource should be resolved with origin resolving path.

_resolveTypeWithDeviceTypeDetection

(
  • type
)
Boolean private

Checks that 'type' needs to be resolved with prefixes received through a device service.

Parameters:

Returns:

isKnown

(
  • fullName
)
Boolean

Checks if template or class with given full name is known and could be resolved.

Parameters:

  • fullName String

    Resource full name (with path inside type-related directory).

Returns:

Boolean:

Flag: indicates whether given resource is known by application or not.

resolve

(
  • fullName
)
Object

This method is called via the container's resolver method. It parses the provided full name and then looks up and returns the appropriate template or class. First of all it tries to find appropriate template or class in device-related subfolder, if it is possible, otherwise it looks up in default folder related to template or class type.

Parameters:

  • fullName String

    Resource full name (with path inside type-related directory).

Returns:

Object:

The resolved factory.

Properties

deviceRelatedTypes

Array

Names of types which needs to be resolved with prefixes received through a device service.

Default: ['component', 'template', 'view']