메소드 | 설명 | |
---|---|---|
LoadSource ( |
||
LoadSource ( string moduleId, Scriptable paths, object validator ) : |
메소드 | 설명 | |
---|---|---|
EntityNeedsRevalidation ( object validator ) : bool |
Override to determine whether according to the validator, the cached module script needs revalidation. Override to determine whether according to the validator, the cached module script needs revalidation. A validator can carry expiry information. If the cached representation is not expired, it doesn' t need revalidation, otherwise it does. When no cache revalidation is required, the external resource will not be contacted at all, so some level of expiry (staleness tolerance) can greatly enhance performance. The default implementation always returns true so it will always require revalidation. |
|
LoadFromFallbackLocations ( string moduleId, object validator ) : |
Override to obtain a module source from fallback locations. Override to obtain a module source from fallback locations. This will be called after source is attempted to be obtained from URIs specified in require.paths. |
|
LoadFromPrivilegedLocations ( string moduleId, object validator ) : |
Override to obtain a module source from privileged locations. Override to obtain a module source from privileged locations. This will be called before source is attempted to be obtained from URIs specified in require.paths. |
|
LoadFromUri ( |
Override in a subclass to load a module script from a logical URI. Override in a subclass to load a module script from a logical URI. The URI is absolute but does not have a file name extension such as ".js". It is up to the ModuleSourceProvider implementation to add such an extension. |
메소드 | 설명 | |
---|---|---|
EnsureTrailingSlash ( string path ) : string | ||
LoadFromPathArray ( string moduleId, Scriptable paths, object validator ) : |
protected EntityNeedsRevalidation ( object validator ) : bool | ||
validator | object | the validator |
리턴 | bool |
protected LoadFromFallbackLocations ( string moduleId, object validator ) : |
||
moduleId | string | the ID of the module |
validator | object | /// a validator that can be used to validate an existing /// cached script. Can be null if there is no cached script available. /// |
리턴 |
protected LoadFromPrivilegedLocations ( string moduleId, object validator ) : |
||
moduleId | string | the ID of the module |
validator | object | /// a validator that can be used to validate an existing /// cached script. Can be null if there is no cached script available. /// |
리턴 |
protected abstract LoadFromUri ( |
||
uri | the URI of the script, without file name extension. | |
@base | ||
validator | object | /// a validator that can be used to revalidate an existing /// cached source at the URI. Can be null if there is no cached source /// available. /// |
리턴 |
public LoadSource ( |
||
uri | ||
@base | ||
validator | object | |
리턴 |
public LoadSource ( string moduleId, Scriptable paths, object validator ) : |
||
moduleId | string | |
paths | Scriptable | |
validator | object | |
리턴 |