Class SpringBeansResolverFactory

java.lang.Object
org.camunda.bpm.engine.spring.SpringBeansResolverFactory
All Implemented Interfaces:
Resolver, ResolverFactory

public class SpringBeansResolverFactory extends Object implements ResolverFactory, Resolver

ResolverFactory and Resolver classes to make the beans managed by the Spring container available in scripting

  • Field Details

    • LOG

      protected static Logger LOG
    • SCOPE_NOT_ACTIVE_EXCEPTION

      protected static String SCOPE_NOT_ACTIVE_EXCEPTION
  • Constructor Details

    • SpringBeansResolverFactory

      public SpringBeansResolverFactory(org.springframework.context.ApplicationContext applicationContext)
  • Method Details

    • createResolver

      public Resolver createResolver(VariableScope variableScope)
      Specified by:
      createResolver in interface ResolverFactory
    • containsKey

      public boolean containsKey(Object key)
      Description copied from interface: Resolver
      Allows checking whether there is currently an object bound to the key.
      Specified by:
      containsKey in interface Resolver
      Parameters:
      key - the key to check
      Returns:
      true if there is currently an object bound to the key. False otherwise.
    • get

      public Object get(Object key)
      Description copied from interface: Resolver
      Returns the object currently bound to the key or false if no object is currently bound to the key
      Specified by:
      get in interface Resolver
      Parameters:
      key - the key of the object to retrieve.
      Returns:
      the object currently bound to the key or 'null' if no object is currently bound to the key.
    • keySet

      public Set<String> keySet()
      Description copied from interface: Resolver
      Returns the set of key that can be resolved using this resolver.
      Specified by:
      keySet in interface Resolver
      Returns:
      the set of keys that can be resolved by this resolver.