Class CoreOptions

java.lang.Object
com.pnfsoftware.jeb.core.CoreOptions

public class CoreOptions extends Object
Public options for ICoreContext. Use through JebCoreService. Options are set up by JEB clients.
  • Method Details

    • setControllerInfo

      public void setControllerInfo(ControllerInfo info)
    • getControllerInfo

      public ControllerInfo 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()
      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

      public void setJebClassesLocation(File location)
      Set the location of JEB classes. This method is reserved for internal use.
      Parameters:
      location - JEB classes file or directory
    • getJebClassesLocation

      public File getJebClassesLocation()
      Get the location of JEB classes.
      Returns:
      a jar file (jeb.jar), or a bin/ folder containing classfiles
    • setStandardProxyInfo

      public void setStandardProxyInfo(NetProxyInfo proxyInfo)
      Standard proxy options provided by a client.
      Parameters:
      proxyInfo - optional; engines settings override those
    • getStandardProxyInfo

      public NetProxyInfo getStandardProxyInfo()
    • getDefault

      public static CoreOptions getDefault()