HTSourceManager<RT, CT extends HTResourceContext<RT> > class
abstract
Manage a set of resources. A resource could be hetu source, yaml, json... etc. Extends this class and provide an implementation of createContext to manage a certain kind of HTResourceContext
- Implementers
Constructors
Properties
-
cachedSources
→ Map<
String, RT> -
no setter
-
contexts
→ Iterable<
CT> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSearchEnabled → bool
-
no setter
- onRootsUpdated ↔ RootUpdatedCallback?
-
Set up a callback for root updated event.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addResource(
String fullName, RT resource) → void -
computeRootsFromFiles(
Iterable< String> filePaths) → void - Computes roots from a set of files.
-
createContext(
String root) → CT -
getResource(
String fullName, {bool reload = false}) → RT? - Try to get a source by a unique key.
-
hasResource(
String fullName) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeResource(
String fullName) → void -
setRoots(
Iterable< String> folderPaths) → void - Create context from a set of folders.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateResource(
String fullName, RT resource) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited