|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.loaders.LoaderBuilder
public class LoaderBuilder
This class is responsible for building an appropriate MillScript loader for a given file extension.
| Constructor Summary | |
|---|---|
LoaderBuilder()
|
|
| Method Summary | |
|---|---|
void |
addLoader(java.lang.String extension,
java.lang.Class loaderClass)
Adds the specified Loader to this builder. |
void |
addLoader(java.lang.String extension,
Loader loader)
Adds the specified Loader to this builder. |
Loader |
getLoaderFor(Package p,
org.millscript.commons.vfs.VEntry entry)
Returns a Loader for the specified virtual filesystem entry, to load into the specified package. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoaderBuilder()
| Method Detail |
|---|
public void addLoader(java.lang.String extension,
java.lang.Class loaderClass)
extension - the extension for the new LoaderloaderClass - the Loader for the specified extension
public void addLoader(java.lang.String extension,
Loader loader)
extension - the extension for the new Loaderloader - the Loader for the specified extension
public Loader getLoaderFor(Package p,
org.millscript.commons.vfs.VEntry entry)
p - the Package to load intoentry - the virtual entry to get a Loader for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||