Package com.senzing.g2.engine.plugin
Class G2PluginInterface.InitContext
- java.lang.Object
-
- com.senzing.g2.engine.plugin.G2PluginInterface.InitContext
-
- Enclosing interface:
- G2PluginInterface
public static class G2PluginInterface.InitContext extends Object
Context for initializing.
-
-
Constructor Summary
Constructors Constructor Description InitContext(String configInfo, G2EngineContext engineContext)Constructs the initialization context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetConfigInfo()Gets the config info.G2EngineContextgetEngineContext()Gets theG2EngineContextthat has been associated with this instance.StringgetErrorMessage()Get the error message (if any).voidsetErrorMessage(String message)Sets the error message (if any).
-
-
-
Constructor Detail
-
InitContext
public InitContext(String configInfo, G2EngineContext engineContext)
Constructs the initialization context.- Parameters:
configInfo- The configuration info.engineContext- TheG2EngineContextto associate with the initialization context.
-
-
Method Detail
-
getConfigInfo
public String getConfigInfo()
Gets the config info.- Returns:
- The config info string
-
getEngineContext
public G2EngineContext getEngineContext()
Gets theG2EngineContextthat has been associated with this instance.- Returns:
- The associated
G2EngineContext.
-
getErrorMessage
public String getErrorMessage()
Get the error message (if any).- Returns:
- The error message that was set or
nullif no error.
-
setErrorMessage
public void setErrorMessage(String message)
Sets the error message (if any).- Parameters:
message- The error message to set if an error occurs, ornullto clear an error.
-
-