Class BaseExternalCodeCfg

java.lang.Object
io.camunda.zeebe.gateway.impl.configuration.BaseExternalCodeCfg
Direct Known Subclasses:
FilterCfg, InterceptorCfg

public class BaseExternalCodeCfg extends Object
  • Field Details

    • id

      protected String id
    • jarPath

      protected String jarPath
    • className

      protected String className
  • Constructor Details

    • BaseExternalCodeCfg

      public BaseExternalCodeCfg()
  • Method Details

    • isExternal

      public boolean isExternal()
      Returns:
      true if the class must be loaded from an external JAR, false otherwise
    • getId

      public String getId()
      Returns a human-readable identifier, mostly for debugging purposes to differentiate instances of the same implementation, for example. If not specified, defaults to the className.
      Returns:
      a human-readable identifier, mostly for debugging purposes
    • setId

      public void setId(String id)
      Parameters:
      id - the new debug identifier of the implementation
    • getJarPath

      public String getJarPath()
      Returns the path to the JAR file containing the class. Note that this may be null, as this field is optional. If it is null, then the implementation is looked up within the base class path.

      NOTE: the path may be relative or absolute. The caller must handle both cases.

      Returns:
      a path to the JAR, or null
    • setJarPath

      public void setJarPath(String jarPath)
      Sets the path to the class JAR. Can be null if the implementation class can be found on the class path.
      Parameters:
      jarPath - the new JAR path, or null
    • getClassName

      public String getClassName()
      Returns:
      the fully qualified class name of the filter implementation
    • setClassName

      public void setClassName(String className)
      Sets a new class name. Note that this must be a fully qualified class name to avoid any collisions.
      Parameters:
      className - the new class name
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object