public interface OperationLoader
Each loader is expected to load only a single type of operation since part of the interface contract provides help information to users about the operation that can be loaded.
Modifier and Type | Method and Description |
---|---|
OperationLoaderArgument[] |
getArguments()
Gets a description of the configuration arguments that this loader
expects to receive
|
String |
getDescription()
Gets a description of the operation that this loader loads
|
String |
getPreferredName()
Gets the name that this loader prefers to be referenced by
|
Operation |
load(File baseDir,
String[] args)
Load an operation described by the given arguments
|
Operation load(File baseDir, String[] args) throws IOException
baseDir
- Base directoryargs
- ArgumentsIOException
String getPreferredName()
This is the preferred name used in certain circumstances such as when
registering using
OperationLoaderRegistry.addLoader(OperationLoader)
but users may
register a loader with any name they want.
String getDescription()
OperationLoaderArgument[] getArguments()
Copyright © 2015. All rights reserved.