All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jbpm.instantiation.UserCodeInterceptorConfig Maven / Gradle / Ivy

The newest version!
package org.jbpm.instantiation;

import org.jbpm.JbpmConfiguration.Configs;

public class UserCodeInterceptorConfig {

  private static UserCodeInterceptor userCodeInterceptor;

  private UserCodeInterceptorConfig() {
    // prevent instantiation
  }

  public static UserCodeInterceptor getUserCodeInterceptor() {
    return userCodeInterceptor != null ? userCodeInterceptor
      : Configs.hasObject("jbpm.user.code.interceptor") ?
        (UserCodeInterceptor) Configs.getObject("jbpm.user.code.interceptor") : null;
  }

  /** @deprecated Use the configuration entry jbpm.user.code.interceptor instead */
  public static void setUserCodeInterceptor(UserCodeInterceptor interceptor) {
    userCodeInterceptor = interceptor;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy