Class BaseExternalCodeCfg
java.lang.Object
io.camunda.zeebe.gateway.impl.configuration.BaseExternalCodeCfg
- Direct Known Subclasses:
FilterCfg,InterceptorCfg
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Returns a human-readable identifier, mostly for debugging purposes to differentiate instances of the same implementation, for example.Returns the path to the JAR file containing the class.inthashCode()booleanvoidsetClassName(String className) Sets a new class name.voidvoidsetJarPath(String jarPath) Sets the path to the class JAR.
-
Field Details
-
id
-
jarPath
-
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
Returns a human-readable identifier, mostly for debugging purposes to differentiate instances of the same implementation, for example. If not specified, defaults to theclassName.- Returns:
- a human-readable identifier, mostly for debugging purposes
-
setId
- Parameters:
id- the new debug identifier of the implementation
-
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
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
- Returns:
- the fully qualified class name of the filter implementation
-
setClassName
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() -
equals
-