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 String
getConfigInfo()
Gets the config info.G2EngineContext
getEngineContext()
Gets theG2EngineContext
that has been associated with this instance.String
getErrorMessage()
Get the error message (if any).void
setErrorMessage(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
- TheG2EngineContext
to 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 theG2EngineContext
that 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
null
if 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, ornull
to clear an error.
-
-