Package com.pnfsoftware.jeb.core
Class CoreOptions
java.lang.Object
com.pnfsoftware.jeb.core.CoreOptions
Public options for
ICoreContext
. Use through JebCoreService
. Options are set up
by JEB clients.-
Method Summary
Modifier and TypeMethodDescriptionstatic CoreOptions
Get the location of JEB classes.boolean
Determine if asynchronous processing is globally allowed for use in plugins.boolean
Determine if development mode is on.boolean
Same asisAllowAsynchronousProcessing()
.void
setAllowAsynchronousProcessing
(boolean allowAsynchronousProcessing) void
void
setDevelopmentMode
(boolean developmentMode) void
setJebClassesLocation
(File location) Set the location of JEB classes.void
setStandardProxyInfo
(NetProxyInfo proxyInfo) Standard proxy options provided by a client.void
setUIClient
(boolean enabled)
-
Method Details
-
setControllerInfo
-
getControllerInfo
-
setAllowAsynchronousProcessing
public void setAllowAsynchronousProcessing(boolean allowAsynchronousProcessing) - Parameters:
allowAsynchronousProcessing
-
-
isAllowAsynchronousProcessing
public boolean isAllowAsynchronousProcessing()Determine if asynchronous processing is globally allowed for use in plugins. Generally, non-interactive clients should forbid plugins from processing tasks asynchronously; conversely, it is recommended for UI clients to allow plugins to perform asynchronous tasks. Note that setting this option to true does not mean that a plugin supporting asynchronous operation will perform them asynchronously! Other parameters may intervene, such as configuration options, user preferences, etc. This attribute is merely a global switch.- Returns:
-
setUIClient
public void setUIClient(boolean enabled) - Parameters:
enabled
-
-
isUIClient
public boolean isUIClient()Same asisAllowAsynchronousProcessing()
.- Returns:
-
setDevelopmentMode
public void setDevelopmentMode(boolean developmentMode) - Parameters:
developmentMode
-
-
isDevelopmentMode
public boolean isDevelopmentMode()Determine if development mode is on. By default, the Core runs in production mode. When development mode is on, additional logging may take place and the JEB engines may allow hot-swapping of some plugin types (in particular, contributions plugins written in Python are hot-swappable).- Returns:
-
setJebClassesLocation
Set the location of JEB classes. This method is reserved for internal use.- Parameters:
location
- JEB classes file or directory
-
getJebClassesLocation
Get the location of JEB classes.- Returns:
- a jar file (
jeb.jar
), or abin/
folder containing classfiles
-
setStandardProxyInfo
Standard proxy options provided by a client.- Parameters:
proxyInfo
- optional; engines settings override those
-
getStandardProxyInfo
-
getDefault
-