HTResourceContext<T> class
abstract
HTResourceContext are a set of resources, each has a unique path. It could be a physical folder, a virtual collection in memory, an URL, or a remote database... any thing that provide create, read, update, delete services could be a resource context.
If the import path starts with 'package:', will try to fetch the source file from '.hetu_modules' under root
If the import path starts with 'module:', then the module should be already loaded by the loadBytecode() method.
- Implementers
Constructors
Properties
-
binaryModuleExtensions
→ List<
String> -
no setter
-
expressionModuleExtensions
→ List<
String> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
included
→ Iterable<
String> -
no setter
- root → String
-
Create a
HTFileSystemContext
Create a HTOverlayContextno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addResource(
String fullName, T resource) → void -
checkExtension(
String ext) → HTResourceType -
contains(
String key) → bool -
getAbsolutePath(
{String key = '', String? dirName, String? fileName}) → String - Get a unique absolute normalized path.
-
getResource(
String key, {String? from}) → T -
Import a resource with a certain
key
, ignore those already imported -
init(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeResource(
String fullName) → void -
toString(
) → String -
A string representation of this object.
inherited
-
updateResource(
String fullName, T resource) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultLocalPackagesFolder → const String
- hetuLocalPackagePrefix → const String
- hetuModuleEntryFileName → const String
- hetuPreloadedModulesPrefix → const String