Resolver Class
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;
Item Index
Methods
Properties
Methods
_resolveResourceWithoutDeviceTypeDetection
-
fullName
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
StringResource full name (with path inside type-related directory).
Returns:
Flag: indicates whether given resource should be resolved with origin resolving path.
_resolveTypeWithDeviceTypeDetection
-
type
Checks that 'type' needs to be resolved with prefixes received through a device service.
Parameters:
-
type
String
Returns:
isKnown
-
fullName
Checks if template or class with given full name is known and could be resolved.
Parameters:
-
fullName
StringResource full name (with path inside type-related directory).
Returns:
Flag: indicates whether given resource is known by application or not.
resolve
-
fullName
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
StringResource full name (with path inside type-related directory).
Returns:
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']