- Type Parameters:
T- the type of resource loaded by this loader
- All Known Subinterfaces:
IBindingModuleLoader,IConstraintLoader,IModuleLoader<M>
- All Known Implementing Classes:
AbstractLoader,AbstractModuleLoader,BindingConstraintLoader,BindingModuleLoader
public interface ILoader<T>
Provides loading capabilities for resources of type
T.
Supports loading from various sources including URIs, paths, files, and URLs.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve the set of loaded resources.default TLoad a resource from the specified file.Load a resource from the specified URI.Loads a resource from the specified URL.Load a resource from the specified path.
-
Method Details
-
getLoadedResources
Retrieve the set of loaded resources.- Returns:
- the set of loaded resources
-
load
Load a resource from the specified URI.- Parameters:
resource- the resource to load- Returns:
- the loaded instance for the specified resource
- Throws:
MetaschemaException- if an error occurred while processing the resourceIOException- if an error occurred parsing the resource
-
load
Load a resource from the specified path.- Parameters:
path- the resource to load- Returns:
- the loaded instance for the specified resource
- Throws:
MetaschemaException- if an error occurred while processing the resourceIOException- if an error occurred parsing the resource
-
load
Load a resource from the specified file.- Parameters:
file- the resource to load- Returns:
- the loaded instance for the specified resource
- Throws:
MetaschemaException- if an error occurred while processing the resourceIOException- if an error occurred parsing the resource
-
load
Loads a resource from the specified URL.- Parameters:
url- the URL to load the resource from- Returns:
- the loaded instance for the specified resource
- Throws:
MetaschemaException- if an error occurred while processing the resourceIOException- if an error occurred parsing the resource
-